Explorar el Código

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 hace 5 años
padre
commit
37142c2db0
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. +3
    -0
      macrovision.js

+ 3
- 0
macrovision.js Ver fichero

@@ -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);


Cargando…
Cancelar
Guardar