impaktapps-ui-builder 0.0.393-alpha.16 → 0.0.393-alpha.18

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.
@@ -8614,9 +8614,19 @@ var service = (funcParams) => {
8614
8614
  };
8615
8615
  funcParams.store.setSchema(
8616
8616
  (pre) => {
8617
+ const updatedProperties = {};
8618
+ const mergedProperties = { ...pre.properties, ...funcParams.schema.properties };
8619
+ Object.keys(mergedProperties).forEach((propertyName) => {
8620
+ const schemaProperty = funcParams.schema.properties[propertyName];
8621
+ if (schemaProperty && (schemaProperty.type === "Select" || schemaProperty.type === "MultipleSelect")) {
8622
+ if (schemaProperty.oneOf && schemaProperty.oneOf[0].const === "") {
8623
+ delete updatedProperties[propertyName];
8624
+ }
8625
+ }
8626
+ });
8617
8627
  return {
8618
8628
  ...funcParams.schema,
8619
- properties: { ...pre.properties, ...funcParams.schema.properties }
8629
+ properties: updatedProperties
8620
8630
  };
8621
8631
  }
8622
8632
  );
@@ -10608,7 +10618,7 @@ function buildRule(configObj, tableName, arrayHolderName) {
10608
10618
  }
10609
10619
  } else if ((configObj.type === "Select" || configObj.type === "MultipleSelect") && ((_j = configObj.value) == null ? void 0 : _j.length) >= 0) {
10610
10620
  if (configObj.type === "Select") {
10611
- let oneOfOptions = configObj.value && configObj.value.length > 0 ? configObj.value.map((e) => ({ const: e.value, title: e.label })) : [{ const: null, title: null }];
10621
+ let oneOfOptions = configObj.value && configObj.value.length > 0 ? configObj.value.map((e) => ({ const: e.value, title: e.label })) : [{ const: "", title: "No options available" }];
10612
10622
  schema.properties[configObj.name] = {
10613
10623
  oneOf: oneOfOptions
10614
10624
  };