parse-dashboard icon indicating copy to clipboard operation
parse-dashboard copied to clipboard

Crash on filter `unique` for pointer

Open mtrezza opened this issue 10 months ago â€ĸ 5 comments

New Issue Checklist

Issue Description

Dashboard crashes when setting a filter unique for a field of type Pointer.

Steps to reproduce

  1. Open class with Pointer field in data browser.
  2. Set filter unique on Pointer field.
  3. 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)

mtrezza avatar Feb 13 '25 20:02 mtrezza

🚀 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?

RaghavArora14 avatar Feb 22 '25 18:02 RaghavArora14

🎉 This change has been released in version 6.1.1-alpha.1

parseplatformorg avatar Mar 06 '25 00:03 parseplatformorg

🎉 This change has been released in version 6.2.0

parseplatformorg avatar Mar 17 '25 01:03 parseplatformorg

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"];

hej2010 avatar Oct 21 '25 17:10 hej2010