Skip to content

Add row with modal causes crash in BrowserCell.react.js #2426

Closed
@TravisHeaver

Description

@TravisHeaver

Issue Description

When adding a new row via the modal then selecting a field to add where the class being added has a field type array (of pointers) the app crashes

Steps to reproduce

create 3 classes class A which has an array of pointers to class B, and class C which points to class A.
In class C select edit => add a row with modal

Actual Outcome

White screen with the crash:
(anonymous function) (bind.js:7) (anonymous function) (BrowserCell.react.js:194:116) map renderCellContent (BrowserCell.react.js:184:137) componentDidMount (BrowserCell.react.js:540) commitLifeCycles (react-dom.development.js:19814) commitLayoutEffects (react-dom.development.js:22803) callCallback (react-dom.development.js:188) dispatchEvent invokeGuardedCallbackDev (react-dom.development.js:237) invokeGuardedCallback (react-dom.development.js:292) commitRootImpl (react-dom.development.js:22541) commitRootImpl unstable_runWithPriority (scheduler.development.js:653) commitRoot (react-dom.development.js:22381) finishSyncRender (react-dom.development.js:21807) performSyncWorkOnRoot (react-dom.development.js:21793) performSyncWorkOnRoot (anonymous function) (react-dom.development.js:11089) unstable_runWithPriority (scheduler.development.js:653) flushSyncCallbackQueueImpl (react-dom.development.js:11084) flushSyncCallbackQueue (react-dom.development.js:11072) scheduleUpdateOnFiber (react-dom.development.js:21199) enqueueSetState (react-dom.development.js:12639) (anonymous function) (react.development.js:471) _callee3$ (ObjectPickerDialog.react.js:245) tryCatch (regeneratorRuntime.js:53) (anonymous function) (regeneratorRuntime.js:135) asyncGeneratorStep (asyncToGenerator.js:9) _next (asyncToGenerator.js:28)

Expected Outcome

You should be able to add the new row

Environment

5.0.0

Dashboard

  • Parse Dashboard version: 5.0.0
  • Browser (Safari, Chrome, Firefox, Edge, etc.): all browsers
  • Browser version: safari 16.4

Server

  • Parse Server version: 5.2.8
  • Operating system: Mac OS 13.3.1
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): local

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: 5.0.0
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): local

Logs

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:releasedReleased as stable versionstate:released-alphaReleased as alpha versionstate:released-betaReleased as beta versiontype:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions