Commit a121a46d authored by Roman's avatar Roman

BRCD-1683 feat(CustomFields) - move configuration to configuration file + add...

BRCD-1683 feat(CustomFields) - move configuration to configuration file + add optio to set default range option
parent 8ae2c43b
......@@ -99,7 +99,11 @@ class CustomFields extends Component {
}
onChangeField = (entity, index, id, value) => {
this.props.dispatch(updateSetting(getSettingsKey(entity), getSettingsPath(entity, ['fields', index, id]), value));
if (value === undefined) {
this.props.dispatch(removeSettingField(getSettingsKey(entity), getSettingsPath(entity, ['fields', index, id])));
} else {
this.props.dispatch(updateSetting(getSettingsKey(entity), getSettingsPath(entity, ['fields', index, id]), value));
}
};
onRemoveField = (entity, index) => {
......
......@@ -4,7 +4,7 @@
"title": "Text",
"unique": true,
"mandatory": true,
"editable": true,
"editable": true,
"display": true,
"showInList": true,
"searchable": true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment