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:
parent
dff785275a
commit
c7b84ba5de
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user