Fixed error when clicking the delete draggable element with none available.
This commit is contained in:
parent
1a521505a6
commit
e0350b2837
1 changed files with 3 additions and 1 deletions
|
@ -113,7 +113,9 @@ const DraggableUtils = {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
deleteDraggableCanvas(element) {
|
deleteDraggableCanvas(element) {
|
||||||
|
if (element) {
|
||||||
element.remove();
|
element.remove();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
deleteDraggableCanvasById(id) {
|
deleteDraggableCanvasById(id) {
|
||||||
this.deleteDraggableCanvas(document.getElementById(id));
|
this.deleteDraggableCanvas(document.getElementById(id));
|
||||||
|
|
Loading…
Reference in a new issue