diff --git a/packages/edit-site/src/components/global-styles/dimensions-panel.js b/packages/edit-site/src/components/global-styles/dimensions-panel.js index 0d43d71cec3d1..d2555a14bea64 100644 --- a/packages/edit-site/src/components/global-styles/dimensions-panel.js +++ b/packages/edit-site/src/components/global-styles/dimensions-panel.js @@ -62,10 +62,14 @@ export default function DimensionsPanel( { name, variation = '' } ) { setStyle( updatedStyle ); if ( newStyle.layout !== settings.layout ) { - setSettings( { - ...rawSettings, - layout: newStyle.layout, - } ); + const updatedSettings = { ...rawSettings, layout: newStyle.layout }; + + // Ensure any changes to layout definitions are not persisted. + if ( updatedSettings.layout?.definitions ) { + delete updatedSettings.layout.definitions; + } + + setSettings( updatedSettings ); } };