diff --git a/Changelog.md b/Changelog.md index 3627d0b5f2c74431155d7e127615f1a89c2d5931..5456158993f6f99814d241f94fa2912945767aae 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. + +## [0.94] - 2025-03-19 +- Fix Excel export for data that includes null values + ## [0.93] - 2025-03-03 - Fix CSV/Excel export for data that includes object/array values diff --git a/compendium-frontend/src/components/download/DownloadDataButton.tsx b/compendium-frontend/src/components/download/DownloadDataButton.tsx index 9ba9329d8fe8665584301ea80fe5cd34e533d74a..07d0ab0e76be0e2e4387ff04e3cff884e7b1c391 100644 --- a/compendium-frontend/src/components/download/DownloadDataButton.tsx +++ b/compendium-frontend/src/components/download/DownloadDataButton.tsx @@ -11,6 +11,7 @@ interface DownloadProps { } function simplifyObjectOrArray(obj) { + if (obj == null) return obj if (Array.isArray(obj)) { return obj.map(simplifyObjectOrArray).join(', '); }