This is an automated email from the ASF dual-hosted git repository. shuai pushed a commit to branch dev in repository https://gitbox.apache.org/repos/asf/answer.git
commit d8582ec58271179f030851c3ccf4b8b94f605497 Author: gaoxiao6331 <[email protected]> AuthorDate: Tue Feb 25 00:10:32 2025 +0800 fix(install): use loggedUserInfoStore directly --- ui/src/pages/Install/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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') {
