* Describe the bug
in runJS, you can access information about the current record of a popup via ctx.popup. but sometimes, ctx.pop returns an empty object.
* Environment
- NocoBase version: 2.0.1 (the latest beta has the same issue)
- Database type and version: PostgreSQL 17
- OS: Windows & Linux
- Deployment Methods: Docker
- Docker image version: nocobase/nocobase:latest
- NodeJS version:
* How To Reproduce
try to read ctx.popup in a JS Block in a popup.
I have added an example in your dev demo environment: https://a_8hwne7u84ho.v13.demo.nocobase.com/admin/gxpzwd86ai1/view/0e01d5573b0/filterbytk/338415172386816/
Expected behavior
it should show resource and parent attribute all the time. but sometimes, it doesn’t
Screenshots
when it does work:
when it doesnt work:

