Fix bug with selecting empty note

This commit is contained in:
Mitchell McCaffrey 2021-08-06 13:34:54 +10:00
parent 5948b45b72
commit d691105fcb

View File

@ -200,6 +200,7 @@ function SelectTool({
if (tokens) { if (tokens) {
for (let token of tokens) { for (let token of tokens) {
if ( if (
token.id() &&
!(token.id() in disabledTokens) && !(token.id() in disabledTokens) &&
intersection.intersects(token.position()) intersection.intersects(token.position())
) { ) {
@ -214,6 +215,7 @@ function SelectTool({
if (notes) { if (notes) {
for (let note of notes) { for (let note of notes) {
if ( if (
note.id() &&
!(note.id() in disabledNotes) && !(note.id() in disabledNotes) &&
intersection.intersects(note.position()) intersection.intersects(note.position())
) { ) {