fix: fix module removal removing incorrect module

This commit is contained in:
kwaroran
2024-05-30 18:08:07 +09:00
parent 8f43728ec0
commit 80b3c30350

View File

@@ -100,7 +100,8 @@
e.stopPropagation()
const d = await alertConfirm(`${language.removeConfirm}` + rmodule.name)
if(d){
$DataBase.modules.splice(i, 1)
const index = $DataBase.modules.findIndex((v) => v.id === rmodule.id)
$DataBase.modules.splice(index, 1)
$DataBase.modules = $DataBase.modules
}
}}>