Crash on filter `unique` for pointer
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
Dashboard crashes when setting a filter unique for a field of type Pointer.
Steps to reproduce
- Open class with Pointer field in data browser.
- Set filter
uniqueon Pointer field. - Dashboard crashes.
Environment
Dashboard
- Parse Dashboard version:
6.0.0-alpha.28
Logs
TypeError: l.get is not a function. (In 'l.get("username")', 'l.get' is undefined)
đ 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.
Hi can i work on this?
đ This change has been released in version 6.1.1-alpha.1
đ This change has been released in version 6.2.0
The dashboard still crashes in version 7.5.0 when filtering with unique on a field that points to _User:
Uncaught (in promise) TypeError: l.get is not a function
at t.value (dashboard.bundle.js:2:3043448)
Line code:
"_User" !== l.className || void 0 === l.get("username") && void 0 === l.get("password") ? "_User" === l.className && void 0 !== l.get("authData") && (U = ["authData"]) : U = ["username", "password"];