ArnoChen
commited on
Commit
Β·
271afa2
1
Parent(s):
0ef8cba
new build
Browse filesfix api alert
lightrag/api/webui/assets/{index-CGBwpbZt.js β index-BMB0OroL.js}
RENAMED
Binary files a/lightrag/api/webui/assets/index-CGBwpbZt.js and b/lightrag/api/webui/assets/index-BMB0OroL.js differ
|
|
lightrag/api/webui/assets/{index-BhTFLcnv.css β index-CLgSwrjG.css}
RENAMED
Binary files a/lightrag/api/webui/assets/index-BhTFLcnv.css and b/lightrag/api/webui/assets/index-CLgSwrjG.css differ
|
|
lightrag/api/webui/index.html
CHANGED
Binary files a/lightrag/api/webui/index.html and b/lightrag/api/webui/index.html differ
|
|
lightrag_webui/src/App.tsx
CHANGED
@@ -46,8 +46,10 @@ function App() {
|
|
46 |
if (message) {
|
47 |
if (message.includes(InvalidApiKeyError) || message.includes(RequireApiKeError)) {
|
48 |
setApiKeyInvalid(true)
|
|
|
49 |
}
|
50 |
}
|
|
|
51 |
}, [message, setApiKeyInvalid])
|
52 |
|
53 |
return (
|
|
|
46 |
if (message) {
|
47 |
if (message.includes(InvalidApiKeyError) || message.includes(RequireApiKeError)) {
|
48 |
setApiKeyInvalid(true)
|
49 |
+
return
|
50 |
}
|
51 |
}
|
52 |
+
setApiKeyInvalid(false)
|
53 |
}, [message, setApiKeyInvalid])
|
54 |
|
55 |
return (
|
lightrag_webui/src/components/ApiKeyAlert.tsx
CHANGED
@@ -4,8 +4,7 @@ import {
|
|
4 |
AlertDialogContent,
|
5 |
AlertDialogDescription,
|
6 |
AlertDialogHeader,
|
7 |
-
AlertDialogTitle
|
8 |
-
AlertDialogTrigger
|
9 |
} from '@/components/ui/AlertDialog'
|
10 |
import Button from '@/components/ui/Button'
|
11 |
import Input from '@/components/ui/Input'
|
@@ -51,7 +50,6 @@ const ApiKeyAlert = () => {
|
|
51 |
|
52 |
return (
|
53 |
<AlertDialog open={opened} onOpenChange={setOpened}>
|
54 |
-
<AlertDialogTrigger>Open</AlertDialogTrigger>
|
55 |
<AlertDialogContent>
|
56 |
<AlertDialogHeader>
|
57 |
<AlertDialogTitle>API Key is required</AlertDialogTitle>
|
|
|
4 |
AlertDialogContent,
|
5 |
AlertDialogDescription,
|
6 |
AlertDialogHeader,
|
7 |
+
AlertDialogTitle
|
|
|
8 |
} from '@/components/ui/AlertDialog'
|
9 |
import Button from '@/components/ui/Button'
|
10 |
import Input from '@/components/ui/Input'
|
|
|
50 |
|
51 |
return (
|
52 |
<AlertDialog open={opened} onOpenChange={setOpened}>
|
|
|
53 |
<AlertDialogContent>
|
54 |
<AlertDialogHeader>
|
55 |
<AlertDialogTitle>API Key is required</AlertDialogTitle>
|