Browse Source

Fix the arrows for very large entities not disappearing when the entity is deleted

tags/v0.1.0
Fen Dweller 6 years ago
parent
commit
c7362189ef
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      macrovision.js

+ 2
- 0
macrovision.js View File

@@ -904,7 +904,9 @@ function removeEntity(element) {

delete entities[element.dataset.key];
const bottomName = document.querySelector("#bottom-name-" + element.dataset.key);
const topName = document.querySelector("#top-name-" + element.dataset.key);
bottomName.parentElement.removeChild(bottomName);
topName.parentElement.removeChild(topName);
element.parentElement.removeChild(element);

}


Loading…
Cancel
Save