editor: avoid error when ctrl clicking while selecting is empty
This commit is contained in:
parent
699638c652
commit
96dcb50177
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