From 306d13d70a8ee5bbe83a22801c3b1f2a138a91e2 Mon Sep 17 00:00:00 2001 From: Charlie Kolb Date: Tue, 29 Oct 2024 14:38:58 +0100 Subject: [PATCH 1/2] enable pinning with error output and always unpin --- packages/editor-ui/src/components/RunData.vue | 9 ++++++--- .../editor-ui/src/composables/usePinnedData.ts | 16 +++++++++------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/packages/editor-ui/src/components/RunData.vue b/packages/editor-ui/src/components/RunData.vue index 1c2d0b78a68ed..46099560517fd 100644 --- a/packages/editor-ui/src/components/RunData.vue +++ b/packages/editor-ui/src/components/RunData.vue @@ -284,6 +284,11 @@ export default defineComponent({ return false; } + if (this.outputIndex !== 0) { + // Only allow pinning of the main output + return false; + } + const canPinNode = usePinnedData(this.node).canPinNode(false); return ( @@ -1209,9 +1214,7 @@ export default defineComponent({