From 9abd5775ef50da66c8d55f286ef2985aba0a6b70 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Wed, 6 Oct 2021 17:23:50 +0200 Subject: [PATCH] Render visible blocks --- src/block_manager/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/block_manager/index.js b/src/block_manager/index.js index bdc396d66..7db0996cc 100644 --- a/src/block_manager/index.js +++ b/src/block_manager/index.js @@ -100,11 +100,10 @@ export default () => { this.em = em; // Global blocks collection - blocks = new Blocks([]); - blocksVisible = new Blocks([]); + blocks = new Blocks(c.blocks); + blocksVisible = new Blocks(blocks.models); categories = new Categories(); this.all = blocks; - blocks.add(c.blocks); this.__initListen(); // Setup the sync between the global and public collections