From 84d6ea5118d4c167c5ab973f01bbb5abe2a08663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Fri, 21 Dec 2018 13:28:47 +0100 Subject: [PATCH] MOBILE-2722 sitehome: Reset blocks list when not suported --- src/core/sitehome/components/index/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/sitehome/components/index/index.ts b/src/core/sitehome/components/index/index.ts index be5e0bda3..9bf86850d 100644 --- a/src/core/sitehome/components/index/index.ts +++ b/src/core/sitehome/components/index/index.ts @@ -158,6 +158,7 @@ export class CoreSiteHomeIndexComponent implements OnInit { if (canGetBlocks) { this.domUtils.showErrorModal(error); } + this.blocks = []; // Cannot get the blocks, just show site main menu if needed. if (sections[0] && this.courseHelper.sectionHasContent(sections[0])) { @@ -166,7 +167,6 @@ export class CoreSiteHomeIndexComponent implements OnInit { }); this.hasSupportedBlock = true; } else { - this.blocks = []; this.hasSupportedBlock = false; } });