mirror of
https://github.com/maputnik/editor.git
synced 2026-01-03 20:10:02 +00:00
React v16.3.0 fixes.
This commit is contained in:
@@ -29,7 +29,7 @@ class JSONEditor extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
this.setState({
|
||||
code: JSON.stringify(nextProps.layer, null, 2)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user