feat: add-create-update-record in workflow (#14654)
## Description - this PR focuses on issue https://github.com/twentyhq/core-team-issues/issues/1476 - Added upsert action ## Visual Appearance <img width="1792" height="1041" alt="Screenshot 2025-10-03 at 12 57 58 PM" src="https://github.com/user-attachments/assets/57afb96c-d4b3-4a87-95f0-11ac4bd61dd8" /> <img width="1792" height="1031" alt="Screenshot 2025-10-03 at 12 57 48 PM" src="https://github.com/user-attachments/assets/9032d4c2-f0d2-46f1-8682-a7e5c280a303" /> --------- Co-authored-by: Félix Malfait <felix.malfait@gmail.com> Co-authored-by: Thomas Trompette <thomas.trompette@sfr.fr>
This commit is contained in:
+1
-2
@@ -5,7 +5,6 @@ import { isDefined } from 'twenty-shared/utils';
|
||||
import {
|
||||
type UpdateWorkflowVersionPositionsMutation,
|
||||
type UpdateWorkflowVersionPositionsMutationVariables,
|
||||
type WorkflowAction,
|
||||
} from '~/generated-metadata/graphql';
|
||||
|
||||
import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient';
|
||||
@@ -57,7 +56,7 @@ export const useTidyUpWorkflowVersion = () => {
|
||||
? { ...cachedRecord.trigger, position: triggerPosition.position }
|
||||
: cachedRecord.trigger;
|
||||
|
||||
const updatedSteps = cachedRecord.steps?.map((step: WorkflowAction) => {
|
||||
const updatedSteps = cachedRecord.steps?.map((step) => {
|
||||
const stepPosition = positions.find(
|
||||
(position) => position.id === step.id,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user