From b94758c1758ff95468b8f174b2474fac5b678adc Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 15 May 2023 21:24:43 +0000 Subject: [PATCH] fix bug in instance delete Signed-off-by: Arthur Lu --- scripts/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/index.js b/scripts/index.js index 2282f5b..6c5f46b 100644 --- a/scripts/index.js +++ b/scripts/index.js @@ -388,7 +388,7 @@ export class Instance { let result = await requestAPI("/instance", "DELETE", body); if (result.status === 200) { - this.parentNode.removeChild(this); + this.shadowElement.parentElement.removeChild(this.shadowElement); } else { alert(result.error);