This website works better with JavaScript.
Home
Explore
Help
Sign In
chemicalcrux
/
macrovision
Watch
1
Star
0
Fork
0
Code
Issues
5
Pull Requests
0
Releases
10
Wiki
Activity
Browse Source
Fix an error when deleting a dragged entity
The viewer would try to call updateEntityElement, but the entity would be deleted, causing an error.
master
Fen Dweller
5 years ago
parent
3109391d67
commit
37142c2db0
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
macrovision.js
+ 3
- 0
macrovision.js
View File
@@ -1167,6 +1167,9 @@ function removeEntity(element) {
if (selected == element) {
deselect();
}
if (clicked == element) {
clicked = null;
}
const option = document.querySelector("#options-selected-entity-" + element.dataset.key);
option.parentElement.removeChild(option);
Write
Preview
Loading…
Cancel
Save