Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

v2.9.9 Minor UI Fixes #46

Merged
merged 4 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/components/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function Screen() {
const isAuth = location.pathname === Path.Auth;
const isMobileScreen = useMobileScreen();
const shouldTightBorder =
config.tightBorder && !isMobileScreen && !getClientConfig()?.isApp;
config.tightBorder && !isMobileScreen && getClientConfig()?.isApp;

useEffect(() => {
loadAsyncGoogleFont();
Expand Down
3 changes: 0 additions & 3 deletions app/store/chat.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import { create } from "zustand";
import { persist } from "zustand/middleware";

import { trimTopic } from "../utils";

import Locale, { getLang } from "../locales";
Expand Down
6 changes: 2 additions & 4 deletions app/store/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function limitNumber(
max: number,
defaultValue: number,
) {
if (typeof x !== "number" || isNaN(x)) {
if (isNaN(x)) {
return defaultValue;
}

Expand Down Expand Up @@ -133,9 +133,7 @@ export const useAppConfig = createPersistStore(
.customModels.split(",")
.filter((v) => !!v && v.length > 0)
.map((m) => ({ name: m, available: true }));

const models = get().models.concat(customModels);
return models;
return get().models.concat(customModels);
},
}),
{
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"package": {
"productName": "ChatGPT Next Web",
"version": "2.9.8"
"version": "2.9.9"
},
"tauri": {
"allowlist": {
Expand Down