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