parse-dashboard
parse-dashboard copied to clipboard
Dashboard doesn't load when there is value in non-Date "expiresAt" column
New Issue Checklist
- [x] I am not disclosing a vulnerability.
- [x] I am not just asking a question.
- [x] I have searched through existing issues.
- [x] I can reproduce the issue with the latest versions of Parse Server and Parse Dashboard.
Issue Description
If a column named "expiresAt" is added to a class with a type other than Date (e.g. String), populating this column with a value will make the dashboard unable to load.
Steps to reproduce
- In any class, create a new column called "expiresAt" with "String" type
- For any object in this class, add a value to the expiresAt column
- Refresh the class or the webpage
Actual Outcome
Dashboard doesn't successfully load. It briefly loads the left panel of classes, then eventually shows a blank/white page.
Expected Outcome
Dashboard successfully loads and displays the class and all the objects in it.
Environment
Dashboard
- Parse Dashboard version:
3.2.1 - Browser (Safari, Chrome, Firefox, Edge, etc.):
Chrome - Browser version:
95.0.4638.69
Server
- Parse Server version:
4.10.4 - Operating system:
Node.js 14 running on 64bit Amazon Linux 2/5.4.7 - Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc):
AWS
Database
- System (MongoDB or Postgres):
MongoDB - Database version:
5.0.3 - Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
MongoDB Atlas
Logs
Chrome console shows this error when issue happens:
dashboard.bundle.js:2
Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=Sun%20Dec%2031%202000%2016%3A00%3A00%20GMT-0800%20(Pacific%20Standard%20Time)&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at So (dashboard.bundle.js:2)
at dashboard.bundle.js:2
at Da (dashboard.bundle.js:2)
at _s (dashboard.bundle.js:2)
at pl (dashboard.bundle.js:2)
at dl (dashboard.bundle.js:2)
at rl (dashboard.bundle.js:2)
at dashboard.bundle.js:2
at t.unstable_runWithPriority (dashboard.bundle.js:2)
at qi (dashboard.bundle.js:2)
dashboard.bundle.js:2
Uncaught (in promise) Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=Sun%20Dec%2031%202000%2016%3A00%3A00%20GMT-0800%20(Pacific%20Standard%20Time)&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at So (dashboard.bundle.js:2)
at dashboard.bundle.js:2
at Da (dashboard.bundle.js:2)
at _s (dashboard.bundle.js:2)
at pl (dashboard.bundle.js:2)
at dl (dashboard.bundle.js:2)
at rl (dashboard.bundle.js:2)
at dashboard.bundle.js:2
at t.unstable_runWithPriority (dashboard.bundle.js:2)
at qi (dashboard.bundle.js:2)
Thanks for opening this issue!
- 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.