mirror of
https://github.com/strapi/strapi.git
synced 2025-08-05 23:40:04 +00:00
CM: Automatically format row layouts after changing the field size
Co-authored-by: Cyril Lopez <cyril@strapi.io>
This commit is contained in:
parent
408f29ec60
commit
4136ecf254
@ -191,7 +191,7 @@ const reducer = (state = initialState, action) =>
|
|||||||
const nextLayoutValue = setFieldSize(state.metaToEdit, state.metaForm.size, layoutsCopy);
|
const nextLayoutValue = setFieldSize(state.metaToEdit, state.metaForm.size, layoutsCopy);
|
||||||
|
|
||||||
if (nextLayoutValue.length > 0) {
|
if (nextLayoutValue.length > 0) {
|
||||||
set(draftState, layoutPathEdit, nextLayoutValue);
|
set(draftState, layoutPathEdit, formatLayout(nextLayoutValue));
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user