Open dacgray opened 8 months ago
I think you have to define row's name
if you want to use condition
in row
.
condition
property needs path
internally, but path
is blank string if name
is not exists.
Adding name to the row field causes a type error and kills the build:
Oh, very sorry. I was mistaken. RowField
is present-only, so name
field is not exists in type. So that was bug.
It causes because of row's path is parent's path, so getSiblingData
returns parent's siblingData.
getSiblingData
code should add edge case for present-only fields, but I can't think how it changes to.
I'm sorry that I was mistaken.
Link to reproduction
No response
Describe the Bug
If I place the condition on the
row
field sibling data is mixed between the item array object and the location group object:If I place the condition on pageSelector and staticPage things work as expected:
To Reproduce
Above
Payload Version
2.11.2
Adapters and Plugins
"@payloadcms/bundler-webpack": "^1.0.6", "@payloadcms/db-mongodb": "^1.3.2", "@payloadcms/plugin-cloud-storage": "^1.1.1", "@payloadcms/plugin-sentry": "^0.0.6", "@payloadcms/richtext-slate": "^1.3.1",