feat: The Big One UI #47
@@ -134,11 +134,7 @@ function useJumpToNode() {
|
|||||||
|
|
||||||
|
|
||||||
return (nodeId: string) => {
|
return (nodeId: string) => {
|
||||||
// select the node
|
// user can't jump to global warning, so prevent further logic from running if the warning is a globalWarning
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// user can't jump to global warning, so prevent further logic from running
|
|
||||||
if (nodeId === globalWarning) return;
|
if (nodeId === globalWarning) return;
|
||||||
const node = getNode(nodeId);
|
const node = getNode(nodeId);
|
||||||
if (!node) return;
|
if (!node) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user