@evoke-platform/ui-components 1.10.0-dev.5 → 1.10.0-dev.6
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.
|
@@ -784,6 +784,7 @@ formComponents, allCriteriaInputs, instance, objectPropertyInputProps, associate
|
|
|
784
784
|
item.autoSave = autoSave;
|
|
785
785
|
item.apiServices = objectPropertyInputProps?.apiServices;
|
|
786
786
|
item.user = objectPropertyInputProps?.user;
|
|
787
|
+
item.setSnackbarError = objectPropertyInputProps?.setSnackbarError;
|
|
787
788
|
item.defaultPages = defaultPages;
|
|
788
789
|
item.navigateTo = navigateTo;
|
|
789
790
|
item.allCriteriaInputs = allCriteriaInputs;
|
|
@@ -245,8 +245,8 @@ function FormRendererContainer(props) {
|
|
|
245
245
|
else if (action?.type === 'create') {
|
|
246
246
|
const response = await apiServices.post(getPrefixedUrl(`/objects/${form.objectId}/instances/actions`), {
|
|
247
247
|
actionId: form.actionId,
|
|
248
|
-
input:
|
|
249
|
-
?.filter((property) =>
|
|
248
|
+
input: omit(submission, sanitizedObject?.properties
|
|
249
|
+
?.filter((property) => property.formula || property.type === 'collection')
|
|
250
250
|
.map((property) => property.id) ?? []),
|
|
251
251
|
});
|
|
252
252
|
if (response) {
|
|
@@ -256,8 +256,8 @@ function FormRendererContainer(props) {
|
|
|
256
256
|
else if (instanceId && action) {
|
|
257
257
|
const response = await objectStore.instanceAction(instanceId, {
|
|
258
258
|
actionId: action.id,
|
|
259
|
-
input:
|
|
260
|
-
?.filter((property) =>
|
|
259
|
+
input: omit(submission, sanitizedObject?.properties
|
|
260
|
+
?.filter((property) => property.formula || property.type === 'collection')
|
|
261
261
|
.map((property) => property.id) ?? []),
|
|
262
262
|
});
|
|
263
263
|
if (sanitizedObject && instance) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useApiServices, useNotification, } from '@evoke-platform/context';
|
|
2
|
-
import { get, isEqual,
|
|
2
|
+
import { get, isEqual, omit, startCase } from 'lodash';
|
|
3
3
|
import { DateTime } from 'luxon';
|
|
4
4
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
5
5
|
import sift from 'sift';
|
|
@@ -383,8 +383,8 @@ const RepeatableField = (props) => {
|
|
|
383
383
|
try {
|
|
384
384
|
const response = await apiServices.post(getPrefixedUrl(`/objects/${relatedObjectId}/instances/${selectedInstanceId}/actions`), {
|
|
385
385
|
actionId: `_${action?.type}`,
|
|
386
|
-
input:
|
|
387
|
-
?.filter((property) =>
|
|
386
|
+
input: omit(input, relatedObject?.properties
|
|
387
|
+
?.filter((property) => property.formula || property.type === 'collection')
|
|
388
388
|
.map((property) => property.id) ?? []),
|
|
389
389
|
});
|
|
390
390
|
if (response && relatedObject && instance) {
|