Merge pull request #2945 from dpalou/MOBILE-3857
MOBILE-3857 overview: Fix filter selector not displayedmain
commit
ecf10d1516
|
@ -229,7 +229,7 @@ export class AddonBlockMyOverviewComponent extends CoreBlockBaseComponent implem
|
|||
* @return Promise resolved when done.
|
||||
*/
|
||||
protected async fetchContent(): Promise<void> {
|
||||
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 = [];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue