Skip to content
Snippets Groups Projects
Commit f26554b8 authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

null is also an object, so check against that first

parent 1736488b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -11,6 +11,7 @@ interface DownloadProps {
}
function simplifyObjectOrArray(obj) {
if (obj == null) return obj
if (Array.isArray(obj)) {
return obj.map(simplifyObjectOrArray).join(', ');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment