Hierarchy sidebar tree renders duplicate React keys - Payload v4-canary.34
Author: gbrizuCreated Sep 29, 2026Updated Sep 29, 2026
LabelsBug
Hierarchy sidebar tree renders duplicate React keys using Postgres
Version: payload 4.0.0-canary.34 · @payloadcms/db-postgres · Next 16.3.0
Opening a folder in the hierarchy sidebar throws:
Encountered two children with the same key, '16' in my example
at @payloadcms/ui/src/elements/Hierarchy/Tree/HierarchySidebarTab.server.tsx:193
Repro
- Postgres adapter, a collection with
folders: true - Create a nested folder tree
- Click a folder that is already in your saved expanded-nodes preference
- Its children render twice → duplicate key warning
Source: payloadcms/payload