1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-31 01:16:01 +02:00

clean(feature): remove unused code

This commit is contained in:
Corinne Krych 2018-02-15 17:28:09 +01:00
parent 12f00c9f0f
commit 46cd021ddb
2 changed files with 2 additions and 4 deletions

View File

@ -34,9 +34,7 @@ const prepare = (methods, dispatch) => {
delete s.id;
});
}
if (input.editmode) {
delete input.description;
}
delete input.description;
// TODO: should add error handling
requestUpdateFeatureToggle(input)(dispatch)

View File

@ -42,7 +42,7 @@ class AddFeatureToggleComponent extends Component {
enabled,
} = input;
const configuredStrategies = input.strategies || [];
input.editmode = editmode;
return (
<form onSubmit={onSubmit(input)}>
<section style={{ padding: '16px' }}>