fix bug in instance delete

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-05-15 21:24:43 +00:00
parent 2fed6e6134
commit 4fbc4ee868

View File

@ -388,7 +388,7 @@ export class Instance {
let result = await requestAPI("/instance", "DELETE", body); let result = await requestAPI("/instance", "DELETE", body);
if (result.status === 200) { if (result.status === 200) {
this.parentNode.removeChild(this); this.shadowElement.parentElement.removeChild(this.shadowElement);
} }
else { else {
alert(result.error); alert(result.error);