Skip to content

Commit

Permalink
Fix node output type (#8488)
Browse files Browse the repository at this point in the history
- Partially fixes #8420

# Important Notes
- Extracted out from #8461 as the other issue may need further investigation to fix.
  • Loading branch information
somebody1234 authored Dec 7, 2023
1 parent 0ec3277 commit f6cf827
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/gui2/src/components/GraphEditor/GraphNode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f6cf827

Please sign in to comment.