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

Commit

Permalink
fix: Yidadaa#3207 ensure corner case (#73)
Browse files Browse the repository at this point in the history
* fix: Yidadaa#3207 ensure corner case

* Update tauri.conf.json

---------

Co-authored-by: Yidadaa <[email protected]>
  • Loading branch information
H0llyW00dzZ and Yidadaa authored Nov 10, 2023
1 parent a23b3fa commit 68eef30
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Azure Api 版本,你可以在这里找到:[Azure 文档](https://learn.micro
OPENAI_API_KEY=<your api key here>
# 中国大陆用户,可以使用本项目自带的代理进行开发,你也可以自由选择其他代理地址
BASE_URL=https://nb.nextweb.fun/api/proxy
BASE_URL=https://ab.nextweb.fun/api/proxy
```

### 本地开发
Expand Down
4 changes: 3 additions & 1 deletion app/utils/clone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ export function ensure<T extends object>(
obj: T,
keys: Array<[keyof T][number]>,
) {
return keys.every((k) => obj[k] !== undefined && obj[k] !== null);
return keys.every(
(k) => obj[k] !== undefined && obj[k] !== null && obj[k] !== "",
);
}
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.10"
"version": "2.9.11"
},
"tauri": {
"allowlist": {
Expand Down

0 comments on commit 68eef30

Please sign in to comment.