Skip to content

Commit dbdc241

Browse files
authored
Merge pull request #1191 from lyp000119/dev
fix issuze #1142
2 parents 839c692 + bf3f137 commit dbdc241

File tree

1 file changed

+4
-0
lines changed
  • frontend/src/app/pages/MainPage/pages/VizPage/Main

1 file changed

+4
-0
lines changed

frontend/src/app/pages/MainPage/pages/VizPage/Main/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { EmptyFiller, TabPane, Tabs } from 'app/components';
33
import useI18NPrefix from 'app/hooks/useI18NPrefix';
44
import BoardEditor from 'app/pages/DashBoardPage/pages/BoardEditor';
55
import { selectOrgId } from 'app/pages/MainPage/slice/selectors';
6+
import { dispatchResize } from 'app/utils/dispatchResize';
67
import { useCallback, useEffect } from 'react';
78
import { useDispatch, useSelector } from 'react-redux';
89
import {
@@ -120,6 +121,9 @@ export function Main({ sliderVisible }: { sliderVisible: boolean }) {
120121
`/organizations/${orgId}/vizs/${activeKey}${activeTab.search || ''}`,
121122
);
122123
}
124+
setTimeout(() => {
125+
dispatchResize();
126+
}, 500);
123127
},
124128
[history, orgId, tabs],
125129
);

0 commit comments

Comments
 (0)