Skip to content

Commit d8582ec

Browse files
gaoxiao6331shuashuai
authored andcommitted
fix(install): use loggedUserInfoStore directly
1 parent c239d87 commit d8582ec

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ui/src/pages/Install/index.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ import { Container, Row, Col, Card, Alert } from 'react-bootstrap';
2222
import { useTranslation, Trans } from 'react-i18next';
2323
import { Helmet, HelmetProvider } from 'react-helmet-async';
2424

25-
import { useStore } from 'zustand';
26-
2725
import type { FormDataType } from '@/common/interface';
2826
import {
2927
dbCheck,
@@ -140,7 +138,7 @@ const Index: FC = () => {
140138
},
141139
});
142140

143-
const { update, user } = useStore(loggedUserInfoStore);
141+
const { update, user } = loggedUserInfoStore();
144142

145143
const updateFormData = (params: FormDataType) => {
146144
if (Object.keys(params)?.[0] === 'db_type') {

0 commit comments

Comments
 (0)