Skip to content

Commit cef4797

Browse files
committed
remove shouldComponentUpdate
This is not needed after switching to controlled inputs. This also blocks showing staticfilepicker modal on state change
1 parent f282b79 commit cef4797

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/components/metadata/MetaSimple.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ export class MetaSimple extends Component {
2121
this.handleCloseModal = this.handleCloseModal.bind(this);
2222
}
2323

24-
shouldComponentUpdate(nextProps) {
25-
return nextProps.fieldValue !== this.props.fieldValue;
26-
}
27-
2824
handleOpenModal () {
2925
this.setState({ showModal: true });
3026
}

0 commit comments

Comments
 (0)