diff --git a/opencti-platform/opencti-front/src/private/components/common/containers/ContainerStixCoreObjectPopover.jsx b/opencti-platform/opencti-front/src/private/components/common/containers/ContainerStixCoreObjectPopover.jsx index 8deade30e10e..727f7a06226a 100644 --- a/opencti-platform/opencti-front/src/private/components/common/containers/ContainerStixCoreObjectPopover.jsx +++ b/opencti-platform/opencti-front/src/private/components/common/containers/ContainerStixCoreObjectPopover.jsx @@ -224,7 +224,6 @@ class ContainerStixCoreObjectPopover extends Component { } }, onCompleted: () => { - this.submitDeleteMapping(); this.handleCloseDelete(); const newSelectedElements = R.omit([toId], selectedElements); setSelectedElements?.(newSelectedElements); diff --git a/opencti-platform/opencti-front/src/private/components/common/files/workbench/WorkbenchFileContent.jsx b/opencti-platform/opencti-front/src/private/components/common/files/workbench/WorkbenchFileContent.jsx index ac2256aeaa3b..be0e35916cbe 100644 --- a/opencti-platform/opencti-front/src/private/components/common/files/workbench/WorkbenchFileContent.jsx +++ b/opencti-platform/opencti-front/src/private/components/common/files/workbench/WorkbenchFileContent.jsx @@ -38,7 +38,7 @@ import StixItemLabels from '../../../../../components/StixItemLabels'; import StixItemMarkings from '../../../../../components/StixItemMarkings'; import SwitchField from '../../../../../components/SwitchField'; import TextField from '../../../../../components/TextField'; -import { APP_BASE_PATH, commitMutation, MESSAGING$, QueryRenderer } from '../../../../../relay/environment'; +import { APP_BASE_PATH, commitMutation, handleError, MESSAGING$, QueryRenderer } from '../../../../../relay/environment'; import { observableValue, resolveIdentityClass, resolveIdentityType, resolveLink, resolveLocationType, resolveThreatActorType } from '../../../../../utils/Entity'; import { defaultKey, defaultValue } from '../../../../../utils/Graph'; import useAttributes from '../../../../../utils/hooks/useAttributes'; @@ -807,6 +807,12 @@ const WorkbenchFileContentComponent = ({ history.push('/dashboard/data/import'); } }, + onError: (error) => { + handleError(error); + setSubmitting(false); + resetForm(); + setDisplayValidate(false); + }, }); }, 2000); }, diff --git a/opencti-platform/opencti-front/src/private/components/data/tasks/TasksList.jsx b/opencti-platform/opencti-front/src/private/components/data/tasks/TasksList.jsx index bc212f47c8ff..959950de4723 100644 --- a/opencti-platform/opencti-front/src/private/components/data/tasks/TasksList.jsx +++ b/opencti-platform/opencti-front/src/private/components/data/tasks/TasksList.jsx @@ -391,8 +391,9 @@ const TasksList = ({ data }) => {