impaktapps-ui-builder 0.0.393-alpha.17 → 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
  );