Skip to content

[JSX] Revert CSV data transformation: replace flatMap with map #9784

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

Open
wants to merge 1 commit into
base: 26.0-release
Choose a base branch
from

Conversation

HenriRabalais
Copy link
Collaborator

This change modifies the transformation of csvData in the DataTable component by replacing .flatMap() with .map().
• Before: csvData was a flattened array of mapped cells across all fields and rows.
• After: csvData is now a nested array (Array<Array>), preserving the structure of rows.
• This aligns better with expected downstream usage or fixes unintended flattening issues in CSV processing.

@HenriRabalais HenriRabalais added the 26.0.0-bugs Issues that were raised during the release testing for 26.0.0 label May 7, 2025
@ridz1208
Copy link
Collaborator

ridz1208 commented May 7, 2025

@driusan Henri made the PR at my request to revert this change. Let's maybe assign it to someone who can thoroughl vet it on the dataquery in the next testing round

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
26.0.0-bugs Issues that were raised during the release testing for 26.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants