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) {
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())
) {