mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
React: Rename deprecated UNSAFE_componentWillReceiveProps (#18526)
This commit is contained in:
committed by
Torkel Ödegaard
parent
4b3440325e
commit
3ccc10f82c
@@ -33,7 +33,7 @@ export class Aggregations extends React.Component<Props, State> {
|
||||
this.setAggOptions(this.props);
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps: Props) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps: Props) {
|
||||
this.setAggOptions(nextProps);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user