Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix(install): use loggedUserInfoStore directly

gaoxiao6331d8582ec58271
diff --git a/ui/src/pages/Install/index.tsx b/ui/src/pages/Install/index.tsx
index d607a4a3..3eb1ac89 100644
--- a/ui/src/pages/Install/index.tsx
+++ b/ui/src/pages/Install/index.tsx
@@ -22,8 +22,6 @@ import { Container, Row, Col, Card, Alert } from 'react-bootstrap';
import { useTranslation, Trans } from 'react-i18next';
import { Helmet, HelmetProvider } from 'react-helmet-async';
-import { useStore } from 'zustand';
-
import type { FormDataType } from '@/common/interface';
import {
dbCheck,
@@ -140,7 +138,7 @@ const Index: FC = () => {
},
});
- const { update, user } = useStore(loggedUserInfoStore);
+ const { update, user } = loggedUserInfoStore();
const updateFormData = (params: FormDataType) => {
if (Object.keys(params)?.[0] === 'db_type') {