impaktapps-ui-builder 0.0.393-alpha.12 → 0.0.393-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10606,12 +10606,11 @@ function buildRule(configObj, tableName, arrayHolderName) {
|
|
|
10606
10606
|
}
|
|
10607
10607
|
}
|
|
10608
10608
|
}
|
|
10609
|
-
} else if ((configObj.type === "Select" || configObj.type === "MultipleSelect") && ((_j = configObj.value) == null ? void 0 : _j.length)
|
|
10609
|
+
} else if ((configObj.type === "Select" || configObj.type === "MultipleSelect") && ((_j = configObj.value) == null ? void 0 : _j.length) >= 0) {
|
|
10610
10610
|
if (configObj.type === "Select") {
|
|
10611
|
+
let oneOfOptions = configObj.value && configObj.value.length > 0 ? configObj.value.map((e) => ({ const: e.value, title: e.label })) : [{ const: "", title: "" }];
|
|
10611
10612
|
schema.properties[configObj.name] = {
|
|
10612
|
-
oneOf:
|
|
10613
|
-
return { const: e.value, title: e.label };
|
|
10614
|
-
})
|
|
10613
|
+
oneOf: oneOfOptions
|
|
10615
10614
|
};
|
|
10616
10615
|
} else if (configObj.type === "MultipleSelect") {
|
|
10617
10616
|
schema.properties[configObj.name] = {
|