mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2024-12-21 19:08:24 +01:00
Fixed error when clicking the delete draggable element with none available.
This commit is contained in:
parent
1a521505a6
commit
e0350b2837
@ -113,7 +113,9 @@ const DraggableUtils = {
|
||||
})
|
||||
},
|
||||
deleteDraggableCanvas(element) {
|
||||
element.remove();
|
||||
if (element) {
|
||||
element.remove();
|
||||
}
|
||||
},
|
||||
deleteDraggableCanvasById(id) {
|
||||
this.deleteDraggableCanvas(document.getElementById(id));
|
||||
|
Loading…
Reference in New Issue
Block a user