1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

fix: remove unused param

This commit is contained in:
Ivar Conradi Østhus 2020-03-05 19:57:44 +01:00
parent dff785275a
commit c7b84ba5de

View File

@ -19,6 +19,8 @@ class AddContextComponent extends Component {
static getDerivedStateFromProps(props, state) {
if (!state.contextField.name && props.contextField.name) {
return { contextField: props.contextField };
} else {
return null;
}
}
@ -162,7 +164,6 @@ class AddContextComponent extends Component {
AddContextComponent.propTypes = {
contextField: PropTypes.object.isRequired,
validateName: PropTypes.func.isRequired,
fetchContext: PropTypes.func.isRequired,
submit: PropTypes.func.isRequired,
history: PropTypes.object.isRequired,
editMode: PropTypes.bool.isRequired,