@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: pick(submission, sanitizedObject?.properties
249
- ?.filter((property) => !property.formula && property.type !== 'collection')
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: pick(submission, sanitizedObject?.properties
260
- ?.filter((property) => !property.formula && property.type !== 'collection')
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, pick, startCase } from 'lodash';
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: pick(input, relatedObject?.properties
387
- ?.filter((property) => !property.formula && property.type !== 'collection')
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.10.0-dev.5",
3
+ "version": "1.10.0-dev.6",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",