Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(react-grid): prevent converting group row value to a string if it is undefined #1824

Merged
merged 3 commits into from Feb 8, 2019

Conversation

ushkal
Copy link
Contributor

@ushkal ushkal commented Feb 5, 2019

fixes #1761

const sameKeyItems = acc.get(key);

if (!sameKeyItems) {
acc.set(key, [value || key, key, [row]]);
const groupingValue = value === rawValue ? value : value || key;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question: is there any case when value !== rawValue? I've tried to use undefined, null as a column value. value === rawValue - is always true.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes - when custom columnCriteria is specified and it returns only a key, thus a value is undefined but rawValue may be not

@ushkal ushkal merged commit c878d33 into DevExpress:master Feb 8, 2019
@ushkal ushkal deleted the grouping-value-undefined branch February 8, 2019 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

React Grid grouping row value is undefined
2 participants