From f6cf8271caf4c67039604af3ebdbf977e89f3551 Mon Sep 17 00:00:00 2001 From: somebody1234 Date: Fri, 8 Dec 2023 00:35:48 +1000 Subject: [PATCH] Fix node output type (#8488) - Partially fixes #8420 # Important Notes - Extracted out from #8461 as the other issue may need further investigation to fix. --- app/gui2/src/components/GraphEditor/GraphNode.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/gui2/src/components/GraphEditor/GraphNode.vue b/app/gui2/src/components/GraphEditor/GraphNode.vue index e6a2c1de9af6..dbbff9ff85bf 100644 --- a/app/gui2/src/components/GraphEditor/GraphNode.vue +++ b/app/gui2/src/components/GraphEditor/GraphNode.vue @@ -229,7 +229,8 @@ const outputPorts = computed((): PortData[] => { const numPorts = ports.size return Array.from(ports, (portId, index) => { const labelIdent = numPorts > 1 ? graph.db.getOutputPortIdentifier(portId) + ': ' : '' - const labelType = graph.db.getExpressionInfo(portId)?.typename ?? 'Unknown' + const labelType = + graph.db.getExpressionInfo(numPorts > 1 ? portId : nodeId.value)?.typename ?? 'Unknown' return { clipRange: [index / numPorts, (index + 1) / numPorts], label: labelIdent + labelType,