🐛 fix(GenericNode/index.tsx): fix title prop in ParameterComponent to handle cases where data.node.output_types is an empty array
🔧 chore(GenericNode/index.tsx): add console.log for debugging purposes
This commit is contained in:
parent
d4b0ce9851
commit
54474889e1
1 changed files with 2 additions and 2 deletions
|
|
@ -66,7 +66,7 @@ export default function GenericNode({
|
|||
deleteNode(data.id);
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(data);
|
||||
useEffect(() => {}, [closePopUp, data.node.template]);
|
||||
return (
|
||||
<>
|
||||
|
|
@ -233,7 +233,7 @@ export default function GenericNode({
|
|||
<ParameterComponent
|
||||
data={data}
|
||||
color={nodeColors[types[data.type]] ?? nodeColors.unknown}
|
||||
title={data.node.output_types ? data.node.output_types.join("|") : data.type}
|
||||
title={data.node.output_types && data.node.output_types.length > 0 ? data.node.output_types.join("|") : data.type}
|
||||
tooltipTitle={data.node.base_classes.join("\n")}
|
||||
id={[data.type, data.id, ...data.node.base_classes].join("|")}
|
||||
type={data.node.base_classes.join("|")}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue