mirror of
https://github.com/maputnik/editor.git
synced 2026-01-06 13:30:03 +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
|
// Check if source is valid for new type
|
||||||
const oldType = this.state.type;
|
const oldType = this.state.type;
|
||||||
const newType = nextState.type;
|
const newType = nextState.type;
|
||||||
@@ -75,6 +75,7 @@ class AddModal extends React.Component {
|
|||||||
source: ""
|
source: ""
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
getLayersForSource(source) {
|
getLayersForSource(source) {
|
||||||
|
|||||||
Reference in New Issue
Block a user