Skip to content

Commit

Permalink
[DataGridPro] Apply default properties if they are not passed in a re…
Browse files Browse the repository at this point in the history
…order column (@k-rajat19) (#15320)

Co-authored-by: Rajat <robertdoweny2301@gmail.com>
Co-authored-by: Bilal Shafi <bilalshafidev@gmail.com>
  • Loading branch information
3 people authored Nov 7, 2024
1 parent a3c2396 commit 5411114
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export const useGridRowReorderPreProcessors = (
const haveReorderColumn = columnsState.lookup[reorderColumn.field] != null;

if (shouldHaveReorderColumn && haveReorderColumn) {
columnsState.lookup[reorderColumn.field] = {
...reorderColumn,
...columnsState.lookup[reorderColumn.field],
};
return columnsState;
}

Expand Down

0 comments on commit 5411114

Please sign in to comment.