fix(editor): Make Webhook node pinnable (#9047)

This commit is contained in:
Iván Ovejero
2024-04-03 17:41:15 +02:00
committed by GitHub
parent dc42ac17a6
commit 042aa62fc2
2 changed files with 17 additions and 1 deletions

View File

@@ -36,7 +36,13 @@ export function useNodeType(
: false;
});
const isMultipleOutputsNodeType = computed(() => (nodeType.value?.outputs ?? []).length > 1);
const isMultipleOutputsNodeType = computed(() => {
const outputs = nodeType.value?.outputs;
if (typeof outputs === 'string') return false; // e.g. Webhook node
return (outputs ?? []).length > 1;
});
return {
nodeType,