fix: new chat don't jump chat in dontShowMask

This commit is contained in:
李秋炯
2023-04-29 13:45:12 +08:00
parent b0cd8579f1
commit 1afd181833

View File

@@ -91,9 +91,8 @@ export function SideBar(props: { className?: string }) {
return (
<div
className={`${styles.sidebar} ${props.className} ${
shouldNarrow && styles["narrow-sidebar"]
}`}
className={`${styles.sidebar} ${props.className} ${shouldNarrow && styles["narrow-sidebar"]
}`}
>
<div className={styles["sidebar-header"]}>
<div className={styles["sidebar-title"]}>ChatGPT Next</div>
@@ -159,6 +158,7 @@ export function SideBar(props: { className?: string }) {
onClick={() => {
if (config.dontShowMaskSplashScreen) {
chatStore.newSession();
navigate(Path.Chat);
} else {
navigate(Path.NewChat);
}