enable wrong data for conditions prop

This commit is contained in:
Niels Lyngsø
2023-07-31 11:39:59 +02:00
parent b14da675ab
commit 57e8904aab

View File

@@ -96,7 +96,8 @@ export abstract class UmbBaseExtensionController<
#gotConditions() {
const conditionConfigs = this.#manifest?.conditions ?? [];
if (conditionConfigs.length === 0) {
// As conditionConfigs might have been configured as something else than an array, then we ignorer them.
if (conditionConfigs.length === undefined || conditionConfigs.length === 0) {
this.#cleanConditions();
this.#onConditionsChangedCallback();
return;