mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
fix(editor): Copy JSON from selected run if node has been multiple times (#13673)
This commit is contained in:
@@ -26,12 +26,11 @@ const props = withDefaults(
|
||||
node: INodeUi;
|
||||
paneType: string;
|
||||
pushRef: string;
|
||||
displayMode: string;
|
||||
distanceFromActive: number;
|
||||
selectedJsonPath: string;
|
||||
jsonData: IDataObject[];
|
||||
currentOutputIndex?: number;
|
||||
runIndex?: number;
|
||||
outputIndex: number | undefined;
|
||||
runIndex: number | undefined;
|
||||
}>(),
|
||||
{
|
||||
selectedJsonPath: nonExistingJsonPath,
|
||||
@@ -71,7 +70,7 @@ function getJsonValue(): string {
|
||||
selectedValue = clearJsonKey(pinnedData.data.value as object);
|
||||
} else {
|
||||
selectedValue = executionDataToJson(
|
||||
nodeHelpers.getNodeInputData(props.node, props.runIndex, props.currentOutputIndex),
|
||||
nodeHelpers.getNodeInputData(props.node, props.runIndex, props.outputIndex),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -176,7 +175,7 @@ function handleCopyClick(commandData: { command: string }) {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div :class="$style.actionsGroup">
|
||||
<div :class="$style.actionsGroup" data-test-id="ndv-json-actions">
|
||||
<n8n-icon-button
|
||||
v-if="noSelection"
|
||||
:title="i18n.baseText('runData.copyToClipboard')"
|
||||
|
||||
Reference in New Issue
Block a user