From 3d07369fd0a53f97f2dd627e796e9f4f6563f84e Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Mon, 13 Sep 2021 17:51:32 +0200 Subject: [PATCH] MOBILE-3857 overview: Fix filter selector not displayed --- .../block/myoverview/components/myoverview/myoverview.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/addons/block/myoverview/components/myoverview/myoverview.ts b/src/addons/block/myoverview/components/myoverview/myoverview.ts index d6a41958a..6bbe6b2a9 100644 --- a/src/addons/block/myoverview/components/myoverview/myoverview.ts +++ b/src/addons/block/myoverview/components/myoverview/myoverview.ts @@ -229,7 +229,7 @@ export class AddonBlockMyOverviewComponent extends CoreBlockBaseComponent implem * @return Promise resolved when done. */ protected async fetchContent(): Promise { - const config = this.block.configsRecord || {}; + const config = this.block.configsRecord; const showCategories = config?.displaycategories?.value == '1'; @@ -300,7 +300,7 @@ export class AddonBlockMyOverviewComponent extends CoreBlockBaseComponent implem false, ); if (this.showFilters.custom == 'show') { - this.customFilter = CoreTextUtils.parseJSON(config?.customfieldsexport?.value, []); + this.customFilter = CoreTextUtils.parseJSON(config?.customfieldsexport?.value || '[]', []); } else { this.customFilter = []; }