-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Describe the Bug
Hi!
I have a nested array field inside a block. When duplicating any array item or array item within it will create an additional nested array item within. Issues also happen when trying to fill in values or delete duplicated items.
Link to the code that reproduces this issue
https://github.com/jakobpevec/payload-locale-filter-bug-repro/tree/infinite-duplication
Reproduction Steps
Use branch "inifnite-duplication" on the reproduction repo.
This is initial structure:
Block
Athlete
Participation
Result
After duplicating Participation this is the structure afterwards
Block
Athlete
Participation
Result
Participation
Result
Result -> try to delete this one and also try selecting a value. Another will be created.
If you try to delete duplicate Result it will reappear instantly. If you click on a value for duplicated item, a new one appears.
Which area(s) are affected? (Select all that apply)
area: ui
Environment Info
Binaries:
Node: 20.18.1
npm: 10.8.2
Yarn: N/A
pnpm: 10.15.0
Relevant Packages:
payload: 3.58.0
next: 15.4.7
@payloadcms/email-nodemailer: 3.58.0
@payloadcms/graphql: 3.51.0
@payloadcms/next/utilities: 3.58.0
@payloadcms/payload-cloud: 3.58.0
@payloadcms/richtext-lexical: 3.58.0
@payloadcms/translations: 3.58.0
@payloadcms/ui/shared: 3.58.0
react: 19.1.0
react-dom: 19.1.0
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:40 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6041
Available memory (MB): 49152
Available CPU cores: 14