editor: avoid error when ctrl clicking while selecting is empty
This commit is contained in:
parent
386ff6870b
commit
19a1d40050
1 changed files with 1 additions and 1 deletions
|
|
@ -402,7 +402,7 @@ class Editor {
|
|||
|
||||
while (!sameLevel && widget.parent !== widgetManager) {
|
||||
let test = true
|
||||
if (this.selectedWidgets[0].parent !== widget.parent) test = false
|
||||
if (this.selectedWidgets.length && this.selectedWidgets[0].parent !== widget.parent) test = false
|
||||
sameLevel = test
|
||||
if (!sameLevel) widget = widget.parent
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue