This is an automated email from the ASF dual-hosted git repository.
dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push:
new ae65820e88 [INLONG-11799][Dashboard] The page will not refresh after
the access groupId is switched (#11801)
ae65820e88 is described below
commit ae65820e886a8d6daaab36bfcf96efbd83527e38
Author: kamianlaida <[email protected]>
AuthorDate: Fri Mar 14 12:35:58 2025 +0800
[INLONG-11799][Dashboard] The page will not refresh after the access
groupId is switched (#11801)
---
inlong-dashboard/src/ui/pages/GroupDetail/index.tsx | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/inlong-dashboard/src/ui/pages/GroupDetail/index.tsx
b/inlong-dashboard/src/ui/pages/GroupDetail/index.tsx
index 93a119634a..1e01be71da 100644
--- a/inlong-dashboard/src/ui/pages/GroupDetail/index.tsx
+++ b/inlong-dashboard/src/ui/pages/GroupDetail/index.tsx
@@ -54,6 +54,10 @@ const Comp: React.FC = () => {
if (!hasOpened(current)) addOpened(current);
}, [current, addOpened, hasOpened]);
+ useEffect(() => {
+ setId(groupId);
+ }, [groupId]);
+
const { data } = useRequest(`/group/get/${id}`, {
ready: !!id && !mqType,
refreshDeps: [id],