Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
MBilalShafi committed Aug 7, 2024
1 parent 6d057a6 commit d2f9abf
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ export const rowSelectionStateInitializer: GridStateInitializer<
Pick<DataGridProcessedProps, 'rowSelectionModel' | 'rowSelection'>
> = (state, props) => ({
...state,
rowSelection: props.rowSelection ? getSelectionModelPropValue(props.rowSelectionModel) ?? [] : [],
rowSelection: props.rowSelection
? (getSelectionModelPropValue(props.rowSelectionModel) ?? [])
: [],
});

/**
Expand Down

0 comments on commit d2f9abf

Please sign in to comment.