-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[data grid] Removing column with turned on aggregation leads to crash #16091
Copy link
Copy link
Open
Labels
customization: logicLogic customizability.Logic customizability.feature: AggregationRelated to the data grid Aggregation featureRelated to the data grid Aggregation featurescope: data gridChanges related to the data grid.Changes related to the data grid.support: premium standardSupport request from a Premium standard plan user. https://mui.com/legal/technical-support-sla.Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla.type: bugIt doesn't behave as expected.It doesn't behave as expected.
Metadata
Metadata
Assignees
Labels
customization: logicLogic customizability.Logic customizability.feature: AggregationRelated to the data grid Aggregation featureRelated to the data grid Aggregation featurescope: data gridChanges related to the data grid.Changes related to the data grid.support: premium standardSupport request from a Premium standard plan user. https://mui.com/legal/technical-support-sla.Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla.type: bugIt doesn't behave as expected.It doesn't behave as expected.
Steps to reproduce
Steps:
Current behavior
After removing the column from the datagrid following error in thrown:

Expected behavior
No error
Context
In my project, this error occurs without the need to modify the source code – simply removing a column causes a crash. I couldn’t reproduce it in the sandbox, as the datagrid in my project is highly customized.
The issue started occurring after updating
@mui/x-data-grid-premiumto version7.23. Version7.22works fine.Two places can 'help' to fix the error:
groupingValueGettereliminates errorI suppose there is probably a problem with the cache in the internals of the Datagrid.
Your environment
npx @mui/envinfoSearch keywords: datagrid
Order ID: 100790