Fix welcome page freezing

This commit is contained in:
kwaroran
2024-11-02 16:48:17 +09:00
parent 8937a9c6e2
commit 5dcb934069

View File

@@ -93,11 +93,19 @@
} }
function getCbsCondition(){ function getCbsCondition(){
const cbsConditions:CbsConditions = { try{
firstmsg: firstMessage ?? false, const cbsConditions:CbsConditions = {
chatRole: DBState.db.characters[$selectedCharID].chats[DBState.db.characters[$selectedCharID].chatPage]?.message?.[idx]?.role ?? null, firstmsg: firstMessage ?? false,
chatRole: DBState.db.characters[$selectedCharID].chats[DBState.db.characters[$selectedCharID].chatPage]?.message?.[idx]?.role ?? null,
}
return cbsConditions
}
catch(e){
return {
firstmsg: firstMessage ?? false,
chatRole: null,
}
} }
return cbsConditions
} }
function displaya(message:string){ function displaya(message:string){