fix(editor): Changes to workflow after execution should not affect logs (#14703)

This commit is contained in:
Suguru Inoue
2025-04-24 12:24:26 +02:00
committed by GitHub
parent 92e2a8e61a
commit 84cee1d12d
21 changed files with 1029 additions and 443 deletions

View File

@@ -12,7 +12,6 @@ import type {
IPinData,
Workflow,
StartNodeData,
IRun,
INode,
IDataObject,
IWorkflowBase,
@@ -439,12 +438,13 @@ export function useRunWorkflow(useRunWorkflowOpts: { router: ReturnType<typeof u
// execution finished before it could be stopped
const executedData = {
data: execution.data,
workflowData: workflowsStore.workflow,
finished: execution.finished,
mode: execution.mode,
startedAt: execution.startedAt,
stoppedAt: execution.stoppedAt,
} as IRun;
workflowsStore.setWorkflowExecutionData(executedData as IExecutionResponse);
} as IExecutionResponse;
workflowsStore.setWorkflowExecutionData(executedData);
toast.showMessage({
title: i18n.baseText('nodeView.showMessage.stopExecutionCatch.title'),
message: i18n.baseText('nodeView.showMessage.stopExecutionCatch.message'),