fix: cannot define a join field when the target relationship is nested to a second or higher tab (#12041)

Fixes https://github.com/payloadcms/payload/issues/11720
This commit is contained in:
Sasha
2025-04-10 15:36:03 +03:00
committed by GitHub
parent a0fb3353c6
commit 7aa3c5ea6b
4 changed files with 78 additions and 64 deletions

View File

@@ -162,6 +162,12 @@ export const Categories: CollectionConfig = {
isFiltered: { not_equals: true },
},
},
{
name: 'inTab',
type: 'join',
collection: postsSlug,
on: 'tab.category',
},
{
name: 'joinWithError',
type: 'join',