Join field admin panel is not refreshed after item is deleted
Describe the Bug
After a user has deleted an item, the join field table is not refreshed. The deleted item is still in the table. The user needs to refresh the browser page in order for the deleted item to be removed.
https://github.com/user-attachments/assets/97fd0402-3281-4b47-bbee-6b3768670e72
Link to the code that reproduces this issue
https://github.com/mfilteau/payload-template-blank.git
Reproduction Steps
For simplicity, I added a collection "Comments" with a relationship to the existing "Users" collection. In the "Users" collection, you will find a new "join" field.
- Go to the user list view.
- Edit a user
- Add a few comments
- Edit one comment by clicking on the edit link in the join table
- Delete the comment
- See that the deleted comment is still present in the join table
- Refresh the browser page
- See that the deleted comment is gone.
Which area(s) are affected? (Select all that apply)
area: ui
Environment Info
Binaries:
Node: 20.10.0
npm: N/A
Yarn: N/A
pnpm: N/A
Relevant Packages:
payload: 3.2.1
next: 15.0.0
@payloadcms/db-mongodb: 3.2.1
@payloadcms/email-nodemailer: 3.2.1
@payloadcms/graphql: 3.2.1
@payloadcms/next/utilities: 3.2.1
@payloadcms/payload-cloud: 3.2.1
@payloadcms/richtext-lexical: 3.2.1
@payloadcms/translations: 3.2.1
@payloadcms/ui/shared: 3.2.1
react: 19.0.0-rc-65a56d0e-20241020
react-dom: 19.0.0-rc-65a56d0e-20241020
Operating System:
Platform: win32
Arch: x64
Version: Windows 11 Pro
Available memory (MB): 65457
Available CPU cores: 16
🚀 This is included in version v3.11.0
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.