diff --git a/packages/block-editor/src/components/global-styles/dimensions-panel.js b/packages/block-editor/src/components/global-styles/dimensions-panel.js index b04c770a17d8ed..12653dbc1be614 100644 --- a/packages/block-editor/src/components/global-styles/dimensions-panel.js +++ b/packages/block-editor/src/components/global-styles/dimensions-panel.js @@ -118,7 +118,7 @@ function filterValuesBySides( values, sides ) { filteredValues.left = values.left; filteredValues.right = values.right; } - filteredValues[ side ] = values[ side ]; + filteredValues[ side ] = values?.[ side ]; } ); return filteredValues;