Skip to content

Commit 8c54d05

Browse files
committed
Use flatmap instead of map + flat
1 parent 9ff1626 commit 8c54d05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/src/export-csv.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ function getFileName(jobName: string | null) {
303303

304304
function getPropertyNames(lois: QuerySnapshot<DocumentData>): Set<string> {
305305
return new Set(
306-
lois.docs.map(loi => Object.keys(loi.get(l.properties) || {})).flat()
306+
lois.docs.flatMap(loi => Object.keys(loi.get(l.properties) || {}))
307307
);
308308
}
309309

0 commit comments

Comments
 (0)