mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-09 01:17:06 +02:00
clean(feature): remove unused code
This commit is contained in:
parent
12f00c9f0f
commit
46cd021ddb
@ -34,9 +34,7 @@ const prepare = (methods, dispatch) => {
|
|||||||
delete s.id;
|
delete s.id;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (input.editmode) {
|
delete input.description;
|
||||||
delete input.description;
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: should add error handling
|
// TODO: should add error handling
|
||||||
requestUpdateFeatureToggle(input)(dispatch)
|
requestUpdateFeatureToggle(input)(dispatch)
|
||||||
|
@ -42,7 +42,7 @@ class AddFeatureToggleComponent extends Component {
|
|||||||
enabled,
|
enabled,
|
||||||
} = input;
|
} = input;
|
||||||
const configuredStrategies = input.strategies || [];
|
const configuredStrategies = input.strategies || [];
|
||||||
input.editmode = editmode;
|
|
||||||
return (
|
return (
|
||||||
<form onSubmit={onSubmit(input)}>
|
<form onSubmit={onSubmit(input)}>
|
||||||
<section style={{ padding: '16px' }}>
|
<section style={{ padding: '16px' }}>
|
||||||
|
Loading…
Reference in New Issue
Block a user