mirror of
https://github.com/maputnik/editor.git
synced 2025-12-27 00:20:00 +00:00
Remove unused argument
This commit is contained in:
@@ -29,7 +29,7 @@ class JSONEditor extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps, prevState) {
|
||||
componentDidUpdate(prevProps) {
|
||||
if (prevProps.layer !== this.props.layer) {
|
||||
this.setState({
|
||||
code: JSON.stringify(this.props.layer, null, 2)
|
||||
|
||||
Reference in New Issue
Block a user