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.
|
* @return Promise resolved when done.
|
||||||
*/
|
*/
|
||||||
protected async fetchContent(): Promise<void> {
|
protected async fetchContent(): Promise<void> {
|
||||||
const config = this.block.configsRecord || {};
|
const config = this.block.configsRecord;
|
||||||
|
|
||||||
const showCategories = config?.displaycategories?.value == '1';
|
const showCategories = config?.displaycategories?.value == '1';
|
||||||
|
|
||||||
|
@ -300,7 +300,7 @@ export class AddonBlockMyOverviewComponent extends CoreBlockBaseComponent implem
|
||||||
false,
|
false,
|
||||||
);
|
);
|
||||||
if (this.showFilters.custom == 'show') {
|
if (this.showFilters.custom == 'show') {
|
||||||
this.customFilter = CoreTextUtils.parseJSON(config?.customfieldsexport?.value, []);
|
this.customFilter = CoreTextUtils.parseJSON(config?.customfieldsexport?.value || '[]', []);
|
||||||
} else {
|
} else {
|
||||||
this.customFilter = [];
|
this.customFilter = [];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue