impaktapps-ui-builder 0.0.393-alpha.17 → 0.0.393-alpha.19

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,23 @@ var service = (funcParams) => {
8614
8614
  };
8615
8615
  funcParams.store.setSchema(
8616
8616
  (pre) => {
8617
+ const updatedProperties = {};
8618
+ const mergedProperties = {
8619
+ ...pre.properties,
8620
+ ...funcParams.schema.properties
8621
+ };
8622
+ Object.keys(mergedProperties).forEach((propertyName) => {
8623
+ const schemaProperty = funcParams.schema.properties[propertyName];
8624
+ if (schemaProperty && (schemaProperty.type === "Select" || schemaProperty.type === "MultipleSelect")) {
8625
+ if (schemaProperty.oneOf && schemaProperty.oneOf.length === 1 && schemaProperty.oneOf[0].const === "") {
8626
+ return;
8627
+ }
8628
+ }
8629
+ updatedProperties[propertyName] = schemaProperty;
8630
+ });
8617
8631
  return {
8618
8632
  ...funcParams.schema,
8619
- properties: { ...pre.properties, ...funcParams.schema.properties }
8633
+ properties: updatedProperties
8620
8634
  };
8621
8635
  }
8622
8636
  );