payloadcms / payload

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.
https://payloadcms.com
MIT License
25.72k stars 1.64k forks source link

Not all props are being passed into custom view when `relationTo` is opened in a Drawer #6462

Open ahmetskilinc opened 6 months ago

ahmetskilinc commented 6 months ago

Similar to payloadcms/payload-3.0-demo#204

When using a custom view and you open that collection in a Drawer the props arent all there.

E.g. You have a media collection and a user collection The user collection has a photo field which has relationTo: 'media' When you click 'Choose from existing' not all of the props are passed, only collectionSlug is passed.

Screenshot 2024-05-18 at 21 21 33

For reproduction repo -

Go to media, add new media, and then go to users, click 'Choose existing' and check console.

ahmetskilinc commented 6 months ago

Probably a non-issue as using hooks provided by Payload is much easier and its all typed.