From d691105fcb8e4f2b6287a9a15a616314946cf1ff Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Fri, 6 Aug 2021 13:34:54 +1000 Subject: [PATCH] Fix bug with selecting empty note --- src/components/tools/SelectTool.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/tools/SelectTool.tsx b/src/components/tools/SelectTool.tsx index f0c3cb8..2a29ca8 100644 --- a/src/components/tools/SelectTool.tsx +++ b/src/components/tools/SelectTool.tsx @@ -200,6 +200,7 @@ function SelectTool({ if (tokens) { for (let token of tokens) { if ( + token.id() && !(token.id() in disabledTokens) && intersection.intersects(token.position()) ) { @@ -214,6 +215,7 @@ function SelectTool({ if (notes) { for (let note of notes) { if ( + note.id() && !(note.id() in disabledNotes) && intersection.intersects(note.position()) ) {