fix: importChat()

This commit is contained in:
chatbung
2025-02-20 12:16:58 +09:00
parent bbcd952c1b
commit eba47ab611

View File

@@ -404,6 +404,11 @@ export async function importChat(){
return
}
if(db.characters[selectedID].chatFolders
.filter(folder => folder.id === newChat.folderId).length === 0) {
newChat.folderId = null
}
db.characters[selectedID].chats.unshift(newChat)
setDatabase(db)
alertNormal(language.successImport)