fix bug in instance delete
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
2fed6e6134
commit
4fbc4ee868
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user