diff --git a/web/src/store/modules/chat/index.ts b/web/src/store/modules/chat/index.ts index 007dddea..2e4f6f12 100644 --- a/web/src/store/modules/chat/index.ts +++ b/web/src/store/modules/chat/index.ts @@ -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 [] } }, },