Skip to content

Commit 0ac498c

Browse files
authored
Fix the load of initial blocks. Fixes #6518 (#6538)
Fix load of initial blocks
1 parent 61ec659 commit 0ac498c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/block_manager/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ export default class BlockManager extends ItemManagerModule<BlockManagerConfig,
7272

7373
onInit() {
7474
const { config, blocks, blocksVisible } = this;
75-
blocks.add(config.blocks || []);
7675
// Setup the sync between the global and public collections
7776
blocks.on('add', (model) => blocksVisible.add(model));
7877
blocks.on('remove', (model) => blocksVisible.remove(model));
7978
blocks.on('reset', (coll) => blocksVisible.reset(coll.models));
79+
blocks.add(config.blocks || []);
8080
}
8181

8282
/**

0 commit comments

Comments
 (0)