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: coerce accessor key to string during column creation #4835

Closed
wants to merge 1 commit into from
Closed

fix: coerce accessor key to string during column creation #4835

wants to merge 1 commit into from

Conversation

jpedroh
Copy link
Contributor

@jpedroh jpedroh commented May 2, 2023

During render, if the accessorKey was not a string, e.g. a number, it would result in an error when trying to normalize it during column creation, because it was trying to access methods which are not available in a number (replace and include). This PR forces the accessor key to be constructed as a string during column creation, thus removing this bug.

fixes #4815

@jpedroh jpedroh marked this pull request as draft May 2, 2023 12:49
@jpedroh jpedroh marked this pull request as ready for review May 2, 2023 13:16
@jpedroh jpedroh closed this by deleting the head repository Jul 25, 2023
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.

Array index as an accessorKey in ColumnDef does not work
1 participant