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 @@ -
+
diff --git a/src/core/block/components/course-blocks/core-block-course-blocks.html b/src/core/block/components/course-blocks/core-block-course-blocks.html index a34ada03c..47494de17 100644 --- a/src/core/block/components/course-blocks/core-block-course-blocks.html +++ b/src/core/block/components/course-blocks/core-block-course-blocks.html @@ -7,7 +7,7 @@ - + diff --git a/src/core/courses/pages/dashboard/dashboard.html b/src/core/courses/pages/dashboard/dashboard.html index d94fcdd0a..4f030b26f 100644 --- a/src/core/courses/pages/dashboard/dashboard.html +++ b/src/core/courses/pages/dashboard/dashboard.html @@ -42,7 +42,7 @@ - +