Skip to content

Commit

Permalink
fix: dont rewrite 0 to "-"
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas H. Kelch committed Feb 9, 2024
1 parent c6e7b6a commit 213528f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/viur-vue-utils/bones/view/boneLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const boneLogic = (skel, structure) => {
}
}

if (!value || !boneStructure) {
if (value === "" || value === null || value === undefined || !boneStructure) {
return "-"
} else if (boneStructure["type"] === "select" || boneStructure["type"].startsWith("select.")) {
// extract description from tuple
Expand Down

0 comments on commit 213528f

Please sign in to comment.