Blocking UI upon Savin Flattened Related Data

Observed behavior

Storing a new item on related data, coming from a flattened field, which contains an array is stalling the application.

The network request does not get sent out, it’s purely the frontend, which blocks with the failure logs below:

Expected behavior

The item gets saved successfully.

Failure Logs

Coming from forestadmin frontend code:

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'pushObject')
    at s.create (client-b93732334e10671ca4b12cb47bbee925.js:1:4342457)
    at v.onClick (client-b93732334e10671ca4b12cb47bbee925.js:1:1155555)
create @ client-b93732334e10671ca4b12cb47bbee925.js:1
onClick @ client-b93732334e10671ca4b12cb47bbee925.js:1

Context

  • Project name: jurata
  • Team name: jurata
  • Environment name: staging
  • Database type: mongoose
  "dependencies": {
    "@forestadmin/agent": "^1.35.16",
    "@forestadmin/datasource-mongoose": "^1.5.29",
    "@forestadmin/datasource-replica": "^1.0.42",
    "@forestadmin/plugin-flattener": "^1.0.69",
    "axios": "^1.4.0",
    "dotenv": "^16.0.1",
    "jsonwebtoken": "^9.0.0",
    "moment": "^2.29.4",
    "mongoose": "^6.10.3",
    "node-cache": "^5.1.2",
    "sqlite3": "^5.1.6",
    "stripe": "^12.10.0",
    "typescript": "^4.9.4"
  },

Hi @David_Roegiers,

I’m trying to reproduce your issue. I’ll get back to you

Okey I do reproduce. I will create a bug ticket.
We will let you know as soon as a fix as been released :wink:

1 Like

Hi @David_Roegiers ,

The fix has been released.

Best regards,

Shohan

3 Likes