@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, fetchCriteriaObjects, fetchRelatedObject, reloadOnErrorTrigger, instance]);
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.6.0-testing.3",
3
+ "version": "1.6.0-testing.4",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",