Skip to content

Commit

Permalink
Fix summary with zero value turning empty
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoshino committed Oct 16, 2023
1 parent 89c67c2 commit 4864927
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
locale,
});
return Array.isArray(value) ? listFormatter.format(value) : value || '';
return Array.isArray(value) ? listFormatter.format(value) : String(value);
});
};
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
locale,
});
return Array.isArray(value) ? listFormatter.format(value) : value || '';
return Array.isArray(value) ? listFormatter.format(value) : String(value);
});
};
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/services/contents/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const getFieldDisplayValue = ({ collectionName, fileName, keyPath, valueM
});
}

return value || '';
return value ?? '';
};

/**
Expand Down

0 comments on commit 4864927

Please sign in to comment.