impaktapps-ui-builder 0.0.393-alpha.20 → 0.0.393-alpha.21
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.
|
@@ -10608,9 +10608,10 @@ function buildRule(configObj, tableName, arrayHolderName) {
|
|
|
10608
10608
|
}
|
|
10609
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: "No options available" }];
|
|
10612
10611
|
schema.properties[configObj.name] = {
|
|
10613
|
-
oneOf:
|
|
10612
|
+
oneOf: configObj.value.map((e) => {
|
|
10613
|
+
return { const: e.value, title: e.label };
|
|
10614
|
+
})
|
|
10614
10615
|
};
|
|
10615
10616
|
} else if (configObj.type === "MultipleSelect") {
|
|
10616
10617
|
schema.properties[configObj.name] = {
|