Skip to content

Commit

Permalink
Add set dirty state as false after initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
ccastrotrejo committed Dec 5, 2024
1 parent ebb0df3 commit 2e42daa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/designer/src/lib/core/parsers/ParseReduxAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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 });
}
});
};
Expand Down

0 comments on commit 2e42daa

Please sign in to comment.