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 (#14473)

Co-authored-by: Bilal Shafi <[email protected]>
  • Loading branch information
k-rajat19 and MBilalShafi authored Nov 7, 2024
1 parent ba87b16 commit c8418e2
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 c8418e2

Please sign in to comment.