Fix frontend node tooltip error (#911)

This commit is contained in:
bymyself
2024-09-21 19:52:35 -07:00
committed by GitHub
parent 529e889d0e
commit 290bf52fc5

View File

@@ -109,7 +109,7 @@ const onIdle = () => {
[0, 0]
)
if (outputSlot !== -1) {
return showTooltip(nodeDef.output.all?.[outputSlot].tooltip)
return showTooltip(nodeDef.output.all?.[outputSlot]?.tooltip)
}
const widget = getHoveredWidget()