Skip to content

Commit

Permalink
Fix initialBlocks config, do not override the whole thing. (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh authored Dec 8, 2024
1 parent d7ebf1c commit 402b22b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions packages/volto-light-theme/news/441.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix initialBlocks config, do not override the whole thing. @sneridagh
12 changes: 5 additions & 7 deletions packages/volto-light-theme/src/config/blocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,11 @@ declare module '@plone/types' {

export default function install(config: ConfigType) {
// Initial block for event content type
config.blocks.initialBlocks = {
Event: [
{ '@type': 'title' },
{ '@type': 'eventMetadata', fixed: true, required: true },
{ '@type': 'slate' },
],
};
config.blocks.initialBlocks.Event = [
{ '@type': 'title' },
{ '@type': 'eventMetadata', fixed: true, required: true },
{ '@type': 'slate' },
];

// Palettes
config.blocks.themes = [
Expand Down

0 comments on commit 402b22b

Please sign in to comment.