@evoke-platform/ui-components 1.6.0-testing.3 → 1.6.0-testing.4
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.
@@ -133,7 +133,7 @@ const RepeatableField = (props) => {
|
|
133
133
|
}
|
134
134
|
}
|
135
135
|
setCriteriaObjects(objects);
|
136
|
-
}, [apiServices, tableViewLayout]);
|
136
|
+
}, [apiServices, relatedObject, tableViewLayout]);
|
137
137
|
useEffect(() => {
|
138
138
|
(async () => {
|
139
139
|
try {
|
@@ -147,9 +147,12 @@ const RepeatableField = (props) => {
|
|
147
147
|
}, [apiServices]);
|
148
148
|
useEffect(() => {
|
149
149
|
fetchRelatedObject();
|
150
|
-
fetchCriteriaObjects();
|
151
150
|
fetchRelatedInstances();
|
152
|
-
}, [fetchRelatedInstances,
|
151
|
+
}, [fetchRelatedInstances, fetchRelatedObject, reloadOnErrorTrigger, instance]);
|
152
|
+
useEffect(() => {
|
153
|
+
if (relatedObject)
|
154
|
+
fetchCriteriaObjects();
|
155
|
+
}, [fetchCriteriaObjects, relatedObject]);
|
153
156
|
useEffect(() => {
|
154
157
|
if (relatedObject?.rootObjectId) {
|
155
158
|
const callback = () => fetchRelatedInstances();
|