@evoke-platform/ui-components 1.10.0-testing.5 → 1.10.0-testing.7
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/FormV2/FormRendererContainer.js +4 -4
- package/dist/published/components/custom/FormV2/components/FormFieldTypes/CollectionFiles/RepeatableField.js +3 -3
- package/dist/published/components/custom/FormV2/tests/FormRenderer.test.js +1 -0
- package/package.json +1 -1
|
@@ -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) {
|