Skip to content

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

Fix empty check for userId when restoring user

天舟10dbecfa9314
diff --git a/frontend/src/store/modules/auth.ts b/frontend/src/store/modules/auth.ts
index 6ea11a7073..229fcaa069 100644
--- a/frontend/src/store/modules/auth.ts
+++ b/frontend/src/store/modules/auth.ts
@@ -86,7 +86,7 @@ const actions = {
async restoreUser({ commit, dispatch }: any) {
const userId = getIntCookie("user");
- if (!isEmpty(userId)) {
+ if (userId) {
const loggedInUser = await dispatch(
"principal/fetchPrincipalById",
userId,