mirror of
https://github.com/strapi/strapi.git
synced 2025-09-22 06:50:51 +00:00
submitting the form should also close modal
This commit is contained in:
parent
a565d9ddc8
commit
dfab9f631e
@ -68,6 +68,8 @@ const reducer = (state = initialState, action) =>
|
||||
break;
|
||||
}
|
||||
case 'SUBMIT_FIELD_FORM': {
|
||||
draftState.fieldForm = {};
|
||||
draftState.fieldToEdit = '';
|
||||
const fieldMetadataPath = ['modifiedData', 'metadatas', state.fieldToEdit, 'list'];
|
||||
set(draftState, [...fieldMetadataPath, 'label'], state.fieldForm.label);
|
||||
set(draftState, [...fieldMetadataPath, 'sortable'], state.fieldForm.sortable);
|
||||
|
Loading…
x
Reference in New Issue
Block a user