You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ji...@apache.org on 2022/04/08 09:52:57 UTC

[incubator-doris-manager] branch master updated: [fix] fix bug with the create space page routing navigation is incorrect (#39)

This is an automated email from the ASF dual-hosted git repository.

jiafengzheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris-manager.git


The following commit(s) were added to refs/heads/master by this push:
     new 2e10f8f  [fix] fix bug with the create space  page routing navigation is incorrect (#39)
2e10f8f is described below

commit 2e10f8fadde32712a7060cf56b28cd2cc184dc13
Author: wangyongfeng <94...@qq.com>
AuthorDate: Fri Apr 8 17:52:52 2022 +0800

    [fix] fix bug with the create space  page routing navigation is incorrect (#39)
    
    fix bug with the create space  page routing navigation is incorrect
---
 frontend/src/routes/space/access-cluster/access-cluster.tsx | 3 +--
 frontend/src/routes/space/new-cluster/new-cluster.tsx       | 4 +---
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/frontend/src/routes/space/access-cluster/access-cluster.tsx b/frontend/src/routes/space/access-cluster/access-cluster.tsx
index e8854c0..30f9c31 100644
--- a/frontend/src/routes/space/access-cluster/access-cluster.tsx
+++ b/frontend/src/routes/space/access-cluster/access-cluster.tsx
@@ -39,13 +39,12 @@ const { Step } = Steps;
 export function AccessCluster() {
     const location = useLocation();
     const navigate = useNavigate();
-    const [searchParams] = useSearchParams();
     const [step, setStep] = React.useState(0);
     const [loading, setLoading] = useState(false);
     const [requestInfo, setRequestInfo] = useRecoilState(requestInfoState);
     const [stepDisabled, setStepDisabled] = useRecoilState(stepDisabledState);
-    const requestId = searchParams.get('requestId');
     const match = useMatch('space/access/:requestId/:step');
+    const requestId = match?.params.requestId;
     const hidePrevSteps = [
         AccessClusterStepsEnum['space-register'],
         AccessClusterStepsEnum['node-verify'],
diff --git a/frontend/src/routes/space/new-cluster/new-cluster.tsx b/frontend/src/routes/space/new-cluster/new-cluster.tsx
index a8894f2..4ecadfa 100644
--- a/frontend/src/routes/space/new-cluster/new-cluster.tsx
+++ b/frontend/src/routes/space/new-cluster/new-cluster.tsx
@@ -52,10 +52,8 @@ export function NewCluster() {
     const [requestInfo, setRequestInfo] = useRecoilState(requestInfoState);
     const [loading, setLoading] = useState(false);
     const [form] = useForm();
-    const [searchParams] = useSearchParams();
-    const requestId = searchParams.get('requestId');
     const match = useMatch('space/new/:requestId/:step');
-
+    const requestId = match?.params.requestId;
     useEffect(() => {
         if (location.pathname === '/space/list') {
             return;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org