diff --git a/packages/volto-light-theme/src/components/Blocks/Separator/schema.js b/packages/volto-light-theme/src/components/Blocks/Separator/schema.js index f8b42caa..0abe248c 100644 --- a/packages/volto-light-theme/src/components/Blocks/Separator/schema.js +++ b/packages/volto-light-theme/src/components/Blocks/Separator/schema.js @@ -13,7 +13,7 @@ const messages = defineMessages({ }); export const SeparatorStylingSchema = ({ schema, formData, intl }) => { - if (formData.styles.shortLine) { + if (formData?.styles?.shortLine) { schema.properties.styles.schema.fieldsets[0].fields = [ 'align:noprefix', ...schema.properties.styles.schema.fieldsets[0].fields,