Fix welcome page freezing
This commit is contained in:
@@ -93,11 +93,19 @@
|
||||
}
|
||||
|
||||
function getCbsCondition(){
|
||||
const cbsConditions:CbsConditions = {
|
||||
firstmsg: firstMessage ?? false,
|
||||
chatRole: DBState.db.characters[$selectedCharID].chats[DBState.db.characters[$selectedCharID].chatPage]?.message?.[idx]?.role ?? null,
|
||||
try{
|
||||
const cbsConditions:CbsConditions = {
|
||||
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){
|
||||
|
||||
Reference in New Issue
Block a user