[fix] lorebook import order fix

This commit is contained in:
kwaroran
2023-06-23 22:45:18 +09:00
parent f0a66a926d
commit 3d7cbe04f1

View File

@@ -213,7 +213,7 @@ export async function importLoreBook(mode:'global'|'local'|'sglobal'){
lore.push({
key: currentLore.key ? currentLore.key.join(', ') :
currentLore.keywords ? currentLore.keywords.join(', ') : '',
insertorder: currentLore.order || currentLore.priority || 0,
insertorder: currentLore.order ?? currentLore.priority ?? 0,
comment: currentLore.comment || currentLore.name || '',
content: currentLore.content || currentLore.entry || '',
mode: "normal",