mirror of
https://github.com/maputnik/editor.git
synced 2025-12-26 08:00:01 +00:00
Remove UNSAFE_componentWillUpdate
This commit is contained in:
@@ -53,7 +53,7 @@ class AddModal extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
UNSAFE_componentWillUpdate(nextProps, nextState) {
|
||||
shouldComponentUpdate(nextProps, nextState) {
|
||||
// Check if source is valid for new type
|
||||
const oldType = this.state.type;
|
||||
const newType = nextState.type;
|
||||
@@ -75,6 +75,7 @@ class AddModal extends React.Component {
|
||||
source: ""
|
||||
});
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
getLayersForSource(source) {
|
||||
|
||||
Reference in New Issue
Block a user