You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[plugin-import-export] Empty array columns stay in the CSV header when a field beforeExport hook returns one value #19141
A field-level hooks.beforeExport on an array field returns one string, so the CSV gets one column for that field (tags). The CSV header still has the schema columns of the array (tags_0_label, tags_0_id), and they are always empty.
Clone the repository, pnpm install, cp .env.example .env.
pnpm payload run src/seed.ts.
pnpm dev.
./repro.sh.
The header is id,title,items_0_label,items_0_id,tags_0_label,tags_0_id,updatedAt,tags,createdAt. tags has the hook value (x | y), and tags_0_label and tags_0_id are empty in every row.
Activity