@evoke-platform/ui-components 1.0.0-dev.238 → 1.0.0-dev.239
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.
package/dist/published/components/custom/Form/FormComponents/ObjectComponent/ObjectComponent.js
CHANGED
@@ -4,7 +4,7 @@ import { cloneDeep, isEmpty, pick } from 'lodash';
|
|
4
4
|
import React from 'react';
|
5
5
|
import ReactDOM from 'react-dom';
|
6
6
|
import { FormComponentWrapper } from '../../Common';
|
7
|
-
import { getAllCriteriaInputs, getPrefixedUrl,
|
7
|
+
import { getAllCriteriaInputs, getPrefixedUrl, transformToWhere, updateCriteriaInputs } from '../../utils';
|
8
8
|
import { ObjectPropertyInput } from './ObjectPropertyInput';
|
9
9
|
export class ObjectComponent extends ReactComponent {
|
10
10
|
constructor(component, options, data) {
|
@@ -130,7 +130,7 @@ export class ObjectComponent extends ReactComponent {
|
|
130
130
|
this.root.customErrors = this.root.customErrors.filter((error) => error.formattedKeyOrPath !== this.component.key);
|
131
131
|
}
|
132
132
|
handleValidation() {
|
133
|
-
if (!
|
133
|
+
if (!this.visible) {
|
134
134
|
return;
|
135
135
|
}
|
136
136
|
//check for out-of-the-box formio errors which store on this.root.errors
|
package/dist/published/components/custom/Form/FormComponents/ObjectComponent/ObjectPropertyInput.js
CHANGED
@@ -228,6 +228,7 @@ export const ObjectPropertyInput = (props) => {
|
|
228
228
|
setDropdownInput(undefined); // refresh search options
|
229
229
|
setSelectedInstance(undefined);
|
230
230
|
handleChangeObjectProperty(property.id, null);
|
231
|
+
instance[property.id] = null;
|
231
232
|
}
|
232
233
|
else {
|
233
234
|
const selectedInstance = options.find((o) => o.id === value?.value);
|