Add string-export support for related-values and translations display (#13263)

* Add string preview handler for related values display

* Fix continue clause in for loop

* Add string export for translations display

* Handle null values better

* ... while making sure false/0/'' still is considered a value
This commit is contained in:
Rijk van Zanten
2022-05-12 15:40:38 -04:00
committed by GitHub
parent 519de95461
commit c3fbdbce99
4 changed files with 139 additions and 5 deletions

View File

@@ -37,6 +37,7 @@ export async function saveAsCSV(collection: string, fields: string[], items: Ite
? await display.handler(value, fieldsUsed[key]?.meta?.display_options ?? {}, {
interfaceOptions: fieldsUsed[key]?.meta?.options ?? {},
field: fieldsUsed[key] ?? undefined,
collection: collection,
})
: value;
} else {