This is an automated email from the ASF dual-hosted git repository.

nicholasjiang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/paimon-webui.git


The following commit(s) were added to refs/heads/main by this push:
     new 2bcc628d [Bugfix] Fix login page reload for clicking submit button 
(#351)
2bcc628d is described below

commit 2bcc628d837fcd47d09219e25805d011c00a7625
Author: xiaomo <[email protected]>
AuthorDate: Wed Jun 12 13:28:03 2024 +0800

    [Bugfix] Fix login page reload for clicking submit button (#351)
---
 paimon-web-ui/src/views/login/use-form.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/paimon-web-ui/src/views/login/use-form.ts 
b/paimon-web-ui/src/views/login/use-form.ts
index e6c584ef..eb85b161 100644
--- a/paimon-web-ui/src/views/login/use-form.ts
+++ b/paimon-web-ui/src/views/login/use-form.ts
@@ -30,10 +30,10 @@ export function useForm() {
     },
   })
 
-  const handleLogin = () => {
+  const handleLogin = async () => {
     state.loginForm.validate(async (errors: Array<FormValidationError>) => {
       if (!errors) {
-        onLogin({
+        await onLogin({
           username: state.model.username,
           password: state.model.password,
           ldapLogin: false,

Reply via email to