Calendar: Fix sidebox category had no options

This commit is contained in:
nathan 2023-10-04 09:13:31 -06:00
parent a430e98bcc
commit ddeec753ee

View File

@ -62,7 +62,7 @@ export const Et2StaticSelectMixin = <T extends Constructor<Et2WidgetWithSelect>>
return options;
}
// Merge & make sure result is unique
return [...new Map([...options, ...(this._static_options || [])].map(item =>
return [...new Map([...options, ...statics].map(item =>
[item.value, item])).values()];
}