Skip to content

Commit

Permalink
Fix exception when opening timepicker
Browse files Browse the repository at this point in the history
If you open a time picker (e.g. "startDate" in the event
details), the ui crashes with an exception:
"Format string contains an unescaped latin alphabet
character `n` ".

This fixes that by downgrading the date-fns dependency.
Allegedly the issues is with material-ui not providing
the correct types for date-fns, but downgrading material-ui
would cause more problems.
  • Loading branch information
Arnei committed Sep 15, 2023
1 parent 38d2aca commit e49669f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 33 deletions.
47 changes: 15 additions & 32 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"homepage": "/admin-ui",
"dependencies": {
"@date-io/date-fns": "^2.16.0",
"@date-io/date-fns": "^1.3.13",
"@edorivai/react-smooth-dnd": "^0.11.2",
"@material-ui/core": "^4.12.4",
"@material-ui/pickers": "^3.3.10",
Expand Down

0 comments on commit e49669f

Please sign in to comment.