[fix] removing index 0 presets overides next preset

This commit is contained in:
kwaroran
2023-06-29 07:45:28 +09:00
parent 0bcf6336b9
commit 96ad8b4938
2 changed files with 6 additions and 2 deletions

View File

@@ -59,8 +59,10 @@
if(d){
changeToPreset(0)
let botPresets = $DataBase.botPresets
console.log(botPresets)
botPresets.splice(i, 1)
$DataBase.botPresets = botPresets
changeToPreset(0, false)
}
}}>
<TrashIcon size={18}/>