-
- {config.toJsonString({
- prettySpaces: 2,
- })}
-
-
- ) : (
-
- ),
- },
- ]}
- />
+ <>
+ Config View
+
+
+ {config.toJsonString({
+ prettySpaces: 2,
+ })}
+
+
+ ) : (
+
+ ),
+ },
+ ]}
+ />
+ >
)}
>
diff --git a/webui/src/views/LoginModal.tsx b/webui/src/views/LoginModal.tsx
index df40ae57..0657a69b 100644
--- a/webui/src/views/LoginModal.tsx
+++ b/webui/src/views/LoginModal.tsx
@@ -17,12 +17,12 @@ export const LoginModal = () => {
new LoginRequest({
username: "default",
password: "password",
- }),
+ })
)
.then((loginResponse) => {
alertApi.success(
"No users configured yet, logged in with default credentials",
- 5,
+ 5
);
setAuthToken(loginResponse.token);
setTimeout(() => {
@@ -30,7 +30,7 @@ export const LoginModal = () => {
}, 500);
})
.catch((e) => {});
- });
+ }, []);
const onFinish = async (values: any) => {
const loginReq = new LoginRequest({