Skip to content

Fix crash on parseISO import from date-fns v3.x. (Fixes #838)#840

Merged
Domino987 merged 1 commit intomaterial-table-core:masterfrom
TheWeirdDev:fix-dates
Apr 28, 2024
Merged

Fix crash on parseISO import from date-fns v3.x. (Fixes #838)#840
Domino987 merged 1 commit intomaterial-table-core:masterfrom
TheWeirdDev:fix-dates

Conversation

@TheWeirdDev
Copy link
Contributor

Related Issue

Description

date-fns v3.x has a slightly different import syntax which causes material-table to crash when it tries to import parseISO.
This problem makes the date and datetime fields unusable.

This PR fixes it by using the correct import syntax according to this comment.

Related PRs

  • None

Impacted Areas in Application

  • Any MTableCell with date or datetime type

Additional Notes

Demos:

@Domino987
Copy link
Contributor

Thanks, I'll merge it Thursday.

@Domino987 Domino987 merged commit 5408b45 into material-table-core:master Apr 28, 2024
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.

2 participants