Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
When an item media deleted from collection, that is already linked to upload field with an option hasMany: true, causing error: Cannot read properties of undefined (reading 'id').
Describe the Bug
When an item media deleted from collection, that is already linked to upload field with an option hasMany: true, causing error: Cannot read properties of undefined (reading 'id').
@paulpopus
Link to the code that reproduces this issue
https://github.com/henrytrianta/payload-reproduce-has-many-issue
Reproduction Steps
Which area(s) are affected? (Select all that apply)
area: core, Not sure
Environment Info