Skip to content

Commit

Permalink
Merge pull request #5834 from nextcloud-libraries/fix/noid/nclistitem…
Browse files Browse the repository at this point in the history
…-counter-null

fix(NcListItem): do not render counter on falsy values
  • Loading branch information
susnux authored Jul 18, 2024
2 parents 318458a + 2f9f51e commit 3551aee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/NcListItem/NcListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,10 @@
<slot name="details">{{ details }}</slot>
</div>
<!-- Counter and indicator -->
<div v-if="counterNumber != 0 || hasIndicator"
<div v-if="counterNumber || hasIndicator"
v-show="showAdditionalElements"
class="list-item-details__extra">
<NcCounterBubble v-if="counterNumber != 0"
<NcCounterBubble v-if="counterNumber"
:active="isActive || active"
class="list-item-details__counter"
:type="counterType">
Expand Down

0 comments on commit 3551aee

Please sign in to comment.