forked from XiaoMo/ChatGPT-Next-Web
fix: build errors
This commit is contained in:
parent
76f851bfa6
commit
8ec927844c
@ -299,7 +299,7 @@ function useSwitchTheme() {
|
|||||||
|
|
||||||
export function Home() {
|
export function Home() {
|
||||||
const [createNewSession] = useChatStore((state) => [state.newSession]);
|
const [createNewSession] = useChatStore((state) => [state.newSession]);
|
||||||
const loading = !useChatStore.persist.hasHydrated();
|
const loading = !useChatStore?.persist?.hasHydrated();
|
||||||
|
|
||||||
// settings
|
// settings
|
||||||
const [openSettings, setOpenSettings] = useState(false);
|
const [openSettings, setOpenSettings] = useState(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user