mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-06 23:41:34 +08:00
fix: build errors
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user