Hi All, I am using the nested docs plugin to create a nested category collection. I would like to override the filterOptions value to prevent the selection of a parent who also has a parent (to limit the depth to two deep), but the parent select list component is not merged but rendered twice within the UI. Once the original and also the new one. Same happens for the breadcrumbs. Is this a bug or am i doing something wrong? Thanks.
fields: [
name(true),
slug,
createParentField(
"locationCategories",
{
filterOptions: ({id}) => {
return {
and: [
{
id: {
not_equals: id
}
},
{
parent: {
exists: false,
}
},
]
}
}
}
),
]
Hi @mvdve are you still experiencing this problem? Quite a few issues were closed out on the nested docs plugin recently.
@jesschow Sorry for te late reply, i will test this this week. Thanks for the heads up!
This has been resolved in 1.0.6. Thanks!
Star
Discord
online
Get help straight from the Payload team with an Enterprise License.