Browse Source

fix(nc-gui): fix download csv/xlsx error (#9010)

* fix(nc-gui): fix download csv/xlsx error

* refactor(nc-gui): Check if the attachment is an array
pull/8385/merge
JoeLee 4 months ago committed by GitHub
parent
commit
4aea1fc1e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 9
      packages/nocodb/src/helpers/dataHelpers.ts

9
packages/nocodb/src/helpers/dataHelpers.ts

@ -165,7 +165,14 @@ export async function serializeCellValue(
if (typeof value === 'string') {
data = JSON.parse(value);
}
} catch {}
if(!Array.isArray(data)) {
data = undefined;
}
} catch {
data = undefined;
}
return (data || [])
.map(

Loading…
Cancel
Save