fix: build errors

This commit is contained in:
Yidadaa 2023-03-14 00:28:25 +08:00
parent 76f851bfa6
commit 8ec927844c

View File

@ -299,7 +299,7 @@ function useSwitchTheme() {
export function Home() {
const [createNewSession] = useChatStore((state) => [state.newSession]);
const loading = !useChatStore.persist.hasHydrated();
const loading = !useChatStore?.persist?.hasHydrated();
// settings
const [openSettings, setOpenSettings] = useState(false);