Fix bug with selecting empty note
This commit is contained in:
parent
5948b45b72
commit
d691105fcb
@ -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())
|
||||||
) {
|
) {
|
||||||
|
Loading…
Reference in New Issue
Block a user