Skip to content

Commit

Permalink
fix: sizeColumnsToFit errors in test (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
matttdawson authored Nov 10, 2022
1 parent 0da3de2 commit f606bfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/contexts/GridContextProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ export const GridContextProvider = (props: GridContextProps): ReactElement => {
*/
const sizeColumnsToFit = (): void => {
gridApiOp((gridApi) => {
gridApi.sizeColumnsToFit();
// Hide size columns to fit errors in tests
document.body.clientWidth && gridApi.sizeColumnsToFit();
});
};

Expand Down

0 comments on commit f606bfa

Please sign in to comment.