fix: module lore sort properly

This commit is contained in:
bangonicdd
2025-05-22 19:01:36 +09:00
parent 5f1d63dcfb
commit 23bd2a4673

View File

@@ -33,11 +33,11 @@
DBState.db.loreBook[DBState.db.loreBookPage].data = newLore
}
else if(externalLoreBooks){
let newLore:loreBook[] = []
const tempArray = [...externalLoreBooks];
externalLoreBooks.length = 0;
idx.forEach((i) => {
newLore.push(externalLoreBooks[i])
})
externalLoreBooks = newLore
externalLoreBooks.push(tempArray[i]);
});
}
else if(submenu === 1){
let newLore:loreBook[] = []