diff --git a/src/App.tsx b/src/App.tsx index 488a42f2..a735efaa 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -294,7 +294,7 @@ const AppNoError = ({ {...defaultTreeReactFlowProps} {...(selection && { selection })} onNodeClick={(_e, node) => { - if (!("nodeType" in node.data)) { + if (node.type == "primer-def-name") { setSelection({ def: node.data.def, });