fix: do not persist active chat id (#927)
parent
a4b1d75c1a
commit
8d3be2ea36
|
|
@ -3,7 +3,7 @@ import { create } from 'zustand'
|
||||||
import { persist } from 'zustand/middleware'
|
import { persist } from 'zustand/middleware'
|
||||||
import { nanoid } from '@/lib/utils'
|
import { nanoid } from '@/lib/utils'
|
||||||
|
|
||||||
const excludeFromState = ['_hasHydrated', 'setHasHydrated']
|
const excludeFromState = ['_hasHydrated', 'setHasHydrated', "activeChatId"]
|
||||||
|
|
||||||
export interface ChatState {
|
export interface ChatState {
|
||||||
chats: Chat[] | undefined
|
chats: Chat[] | undefined
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue