fix(editor): Make Webhook node pinnable (#9047)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user