diff --git a/src/core/block/components/block/block.ts b/src/core/block/components/block/block.ts index 3632c972f..5a7546e52 100644 --- a/src/core/block/components/block/block.ts +++ b/src/core/block/components/block/block.ts @@ -57,8 +57,10 @@ export class CoreBlockComponent implements OnInit, OnDestroy, DoCheck { return; } - // Get the data to render the block. - this.initBlock(); + if (this.block.visible) { + // Get the data to render the block. + this.initBlock(); + } } /** diff --git a/src/core/block/components/block/core-block.html b/src/core/block/components/block/core-block.html index 591977ecd..1c1e3a215 100644 --- a/src/core/block/components/block/core-block.html +++ b/src/core/block/components/block/core-block.html @@ -1,4 +1,4 @@ -