Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: correctly update actuator info after first registration (#674)

Liu Jie406c83aaca2
diff --git a/frontend/src/views/auth/Signup.vue b/frontend/src/views/auth/Signup.vue
index f192b20ee8..2298465ae8 100644
--- a/frontend/src/views/auth/Signup.vue
+++ b/frontend/src/views/auth/Signup.vue
@@ -273,14 +273,14 @@ export default {
password: state.password,
name: state.name,
};
- store.dispatch("auth/signup", signupInfo).then(() => {
+ store.dispatch("auth/signup", signupInfo).then(async () => {
+ // we need to update the server info after setting up the first admin account so that the splash screen
+ // won't display the UI for registering the first admin account again.
+ if (needAdminSetup.value) {
+ await store.dispatch("actuator/fetchInfo");
+ }
router.push("/");
});
- // we need to update the server info after setting up the first admin account so that the splash screen
- // won't display the UI for registering the first admin account again.
- if (needAdminSetup.value) {
- store.dispatch("actuator/fetchInfo");
- }
}
};