Skip to content

Commit 73ac55a

Browse files
committed
add initial resize effect
1 parent 9634b8a commit 73ac55a

File tree

1 file changed

+4
-0
lines changed
  • packages/main/src/components/AnalyticalTable

1 file changed

+4
-0
lines changed

packages/main/src/components/AnalyticalTable/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,10 @@ const AnalyticalTable: FC<TableProps> = forwardRef((props: TableProps, ref: Ref<
264264
};
265265
}, [updateTableClientWidth]);
266266

267+
useEffect(() => {
268+
updateTableClientWidth();
269+
}, [updateTableClientWidth]);
270+
267271
useEffect(() => {
268272
dispatch({ type: 'SET_GROUP_BY', payload: groupBy });
269273
}, [groupBy, dispatch]);

0 commit comments

Comments
 (0)