fix(editor): Copy JSON from selected run if node has been multiple times (#13673)

This commit is contained in:
Jaakko Husso
2025-03-04 17:19:51 +02:00
committed by GitHub
parent 72c535f583
commit 5eddf00fa1
4 changed files with 388 additions and 8 deletions

View File

@@ -29,6 +29,7 @@ const props = withDefaults(
inputData: INodeExecutionData[];
mappingEnabled?: boolean;
distanceFromActive: number;
outputIndex: number | undefined;
runIndex: number | undefined;
totalRuns: number | undefined;
search: string | undefined;
@@ -45,7 +46,6 @@ const telemetry = useTelemetry();
const selectedJsonPath = ref(nonExistingJsonPath);
const draggingPath = ref<null | string>(null);
const displayMode = ref('json');
const jsonDataContainer = ref(null);
const { height } = useElementSize(jsonDataContainer);
@@ -119,12 +119,13 @@ const getListItemName = (path: string) => {
<LazyRunDataJsonActions
v-if="!editMode.enabled"
:node="node"
:pane-type="paneType"
:push-ref="pushRef"
:display-mode="displayMode"
:distance-from-active="distanceFromActive"
:selected-json-path="selectedJsonPath"
:json-data="jsonData"
:pane-type="paneType"
:output-index="outputIndex"
:run-index="runIndex"
/>
</Suspense>
<Draggable