impaktapps-ui-builder 0.0.393-alpha.10 → 0.0.393-alpha.12

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,19 +10606,19 @@ 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) >= 0) {
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
10611
  schema.properties[configObj.name] = {
10612
- oneOf: Array.isArray(configObj.value) && configObj.value.length > 0 ? configObj.value.map((e) => {
10612
+ oneOf: configObj.value.map((e) => {
10613
10613
  return { const: e.value, title: e.label };
10614
- }) : [{ const: "", title: "" }]
10614
+ })
10615
10615
  };
10616
10616
  } else if (configObj.type === "MultipleSelect") {
10617
10617
  schema.properties[configObj.name] = {
10618
10618
  items: {
10619
- oneOf: Array.isArray(configObj.value) && configObj.value.length > 0 ? configObj.value.map((e) => {
10619
+ oneOf: configObj.value.map((e) => {
10620
10620
  return { const: e.value, title: e.label };
10621
- }) : [{ const: "", title: "" }]
10621
+ })
10622
10622
  }
10623
10623
  };
10624
10624
  }