CM: Automatically format row layouts after changing the field size

Co-authored-by: Cyril Lopez <cyril@strapi.io>
This commit is contained in:
Gustav Hansen 2022-02-08 12:55:52 +01:00
parent 408f29ec60
commit 4136ecf254

View File

@ -191,7 +191,7 @@ const reducer = (state = initialState, action) =>
const nextLayoutValue = setFieldSize(state.metaToEdit, state.metaForm.size, layoutsCopy);
if (nextLayoutValue.length > 0) {
set(draftState, layoutPathEdit, nextLayoutValue);
set(draftState, layoutPathEdit, formatLayout(nextLayoutValue));
}
break;