Skip to content

Commit ae65820

Browse files
[INLONG-11799][Dashboard] The page will not refresh after the access groupId is switched (#11801)
1 parent b7cf953 commit ae65820

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • inlong-dashboard/src/ui/pages/GroupDetail

inlong-dashboard/src/ui/pages/GroupDetail/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ const Comp: React.FC = () => {
5454
if (!hasOpened(current)) addOpened(current);
5555
}, [current, addOpened, hasOpened]);
5656

57+
useEffect(() => {
58+
setId(groupId);
59+
}, [groupId]);
60+
5761
const { data } = useRequest(`/group/get/${id}`, {
5862
ready: !!id && !mqType,
5963
refreshDeps: [id],

0 commit comments

Comments
 (0)