From 2e42daa5ee3898a6626123662a0d064f7748f9dd Mon Sep 17 00:00:00 2001 From: Carlos Emiliano Castro Trejo Date: Thu, 5 Dec 2024 15:42:14 -0600 Subject: [PATCH] Add set dirty state as false after initialize --- libs/designer/src/lib/core/parsers/ParseReduxAction.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/designer/src/lib/core/parsers/ParseReduxAction.ts b/libs/designer/src/lib/core/parsers/ParseReduxAction.ts index 0342f1f268f..6e609ff27b8 100644 --- a/libs/designer/src/lib/core/parsers/ParseReduxAction.ts +++ b/libs/designer/src/lib/core/parsers/ParseReduxAction.ts @@ -5,7 +5,7 @@ import { initializeOperationMetadata, initializeDynamicDataInNodes } from '../ac import { getConnectionsQuery } from '../queries/connections'; import { initializeConnectionReferences } from '../state/connection/connectionSlice'; import { initializeStaticResultProperties } from '../state/staticresultschema/staticresultsSlice'; -import { setCollapsedGraphIds } from '../state/workflow/workflowSlice'; +import { setCollapsedGraphIds, setIsWorkflowDirty } from '../state/workflow/workflowSlice'; import type { RootState } from '../store'; import { getCustomCodeFilesWithData } from '../utils/parameters/helper'; import type { DeserializedWorkflow } from './BJSWorkflow/BJSDeserializer'; @@ -85,10 +85,11 @@ export const initializeGraphState = createAsyncThunk< getConnectionsApiAndMapping(deserializedWorkflow, dispatch), ]); await initializeDynamicDataInNodes(getState, dispatch); + dispatch(setIsWorkflowDirty(false)); LoggerService().endTrace(traceId, { status: Status.Success }); } catch (e) { - LoggerService().endTrace(traceId, { status: Status.Failure }); + LoggerService().endTrace(traceId, { status: Status.Failure, data: e }); } }); };