Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
cyx2000 committed Apr 25, 2024
1 parent 486a070 commit 07b9df5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/src/store/modules/chat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ export const useChatStore = defineStore('chat-store', {
return (uuid?: string) => {
if (uuid)
return state.chat[uuid] ?? []
return (
state.chat[state.active] ?? []
)
if (state.active)
return state.chat[state.active] ?? []
return []
}
},
},
Expand Down

0 comments on commit 07b9df5

Please sign in to comment.