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

@@ -25,6 +25,7 @@ import {
import { computed, defineAsyncComponent, onBeforeUnmount, onMounted, ref, toRef, watch } from 'vue';
import type {
IExecutionResponse,
INodeUi,
INodeUpdatePropertiesInformation,
IRunDataDisplayMode,
@@ -118,6 +119,7 @@ export type EnterEditModeArgs = {
type Props = {
workflow: Workflow;
workflowExecution?: IExecutionResponse;
runIndex: number;
tooMuchDataTitle: string;
executingMessage: string;
@@ -163,6 +165,7 @@ const props = withDefaults(defineProps<Props>(), {
disableHoverHighlight: false,
compact: false,
tableHeaderBgColor: 'base',
workflowExecution: undefined,
});
defineSlots<{
@@ -334,12 +337,14 @@ const executionHints = computed(() => {
return [];
});
const workflowExecution = computed(() => workflowsStore.getWorkflowExecution);
const workflowExecution = computed(
() => props.workflowExecution ?? workflowsStore.getWorkflowExecution ?? undefined,
);
const workflowRunData = computed(() => {
if (workflowExecution.value === null) {
if (workflowExecution.value === undefined) {
return null;
}
const executionData: IRunExecutionData | undefined = workflowExecution.value.data;
const executionData: IRunExecutionData | undefined = workflowExecution.value?.data;
if (executionData?.resultData) {
return executionData.resultData.runData;
}
@@ -1104,6 +1109,7 @@ function getRawInputData(
outputIndex,
props.paneType,
connectionType,
workflowExecution.value,
);
}