Skip to content

Commit

Permalink
Fix edge case where data is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Oct 28, 2024
1 parent d683b8e commit 3081ac4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/volto-light-theme/src/config/blocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export default function install(config: ConfigType) {
];

function blockThemesEnhancer(data) {
if (!data['@type']) return {};
const blockConfig = config.blocks.blocksConfig[data['@type']];
const blockStyleDefinitions =
// We look up for the blockThemes in the block's config, then in the global config
Expand Down

0 comments on commit 3081ac4

Please sign in to comment.