fix: copy to locale with localized arrays and blocks generate new IDs to prevent errors in postgres (#10292)

Fixes https://github.com/payloadcms/payload/issues/10093
This commit is contained in:
Sasha
2025-01-03 21:23:16 +02:00
committed by GitHub
parent d68a1eaafb
commit c7b3204439
5 changed files with 158 additions and 7 deletions

View File

@@ -47,5 +47,16 @@ export const NestedToArrayAndBlock: CollectionConfig = {
},
],
},
{
name: 'topLevelArrayLocalized',
type: 'array',
localized: true,
fields: [
{
name: 'text',
type: 'text',
},
],
},
],
}