Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
dtassone committed Oct 20, 2020
1 parent 0095c90 commit da62f82
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,16 @@ export function useColumns(columns: Columns, apiRef: ApiRef): InternalColumns {
columns,
gridState.options.columnTypes,
!!gridState.options.checkboxSelection,
logger
logger,
);
updateState(newState);
}, [columns, gridState.options.columnTypes, gridState.options.checkboxSelection, logger, updateState]);
}, [
columns,
gridState.options.columnTypes,
gridState.options.checkboxSelection,
logger,
updateState,
]);

const getColumnFromField: (field: string) => ColDef = React.useCallback(
(field) => gridState.columns.lookup[field],
Expand Down

0 comments on commit da62f82

Please sign in to comment.