Skip to content

Commit

Permalink
Merge pull request #2113 from Inist-CNRS/2109-la-routine-cross-by-et-…
Browse files Browse the repository at this point in the history
…sans-doute-dautres-ne-prend-pas-en-compte-0-comme-valeur

fix: exclude only undefined values
  • Loading branch information
touv authored Jul 26, 2024
2 parents 1d6237d + babed4d commit 2ffbb34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ezsLodex/src/formatOutput.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function formatOutput(data, feed) {
if (keys.length > 0) {
let check = false;
keys.forEach((k, index) => {
if (values[index]) {
if (values[index] !== undefined) {
feed.write(!check ? ' ' : ',');
check = true;
feed.write(json(k));
Expand Down

0 comments on commit 2ffbb34

Please sign in to comment.