clone: prevent cleanClone if widget is empty
This commit is contained in:
parent
0fb145f83a
commit
be5556c63e
1 changed files with 2 additions and 0 deletions
|
|
@ -101,6 +101,8 @@ module.exports = class Clone extends Widget {
|
|||
|
||||
cleanClone() {
|
||||
|
||||
if (!this.childrenHashes.length) return
|
||||
|
||||
widgetManager.removeWidgets(this.childrenHashes)
|
||||
this.widget.innerHTML = ''
|
||||
this.childrenHashes = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue