From c7362189efdaa4c06eaabcf1da964e8332abab7c Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Wed, 1 Apr 2020 10:43:31 -0400 Subject: [PATCH] Fix the arrows for very large entities not disappearing when the entity is deleted --- macrovision.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/macrovision.js b/macrovision.js index f21d06bc..b08f2c67 100644 --- a/macrovision.js +++ b/macrovision.js @@ -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); }