mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-18 01:18:23 +02:00
fix: remove unused param
This commit is contained in:
parent
dff785275a
commit
c7b84ba5de
@ -19,6 +19,8 @@ class AddContextComponent extends Component {
|
|||||||
static getDerivedStateFromProps(props, state) {
|
static getDerivedStateFromProps(props, state) {
|
||||||
if (!state.contextField.name && props.contextField.name) {
|
if (!state.contextField.name && props.contextField.name) {
|
||||||
return { contextField: props.contextField };
|
return { contextField: props.contextField };
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -162,7 +164,6 @@ class AddContextComponent extends Component {
|
|||||||
AddContextComponent.propTypes = {
|
AddContextComponent.propTypes = {
|
||||||
contextField: PropTypes.object.isRequired,
|
contextField: PropTypes.object.isRequired,
|
||||||
validateName: PropTypes.func.isRequired,
|
validateName: PropTypes.func.isRequired,
|
||||||
fetchContext: PropTypes.func.isRequired,
|
|
||||||
submit: PropTypes.func.isRequired,
|
submit: PropTypes.func.isRequired,
|
||||||
history: PropTypes.object.isRequired,
|
history: PropTypes.object.isRequired,
|
||||||
editMode: PropTypes.bool.isRequired,
|
editMode: PropTypes.bool.isRequired,
|
||||||
|
Loading…
Reference in New Issue
Block a user