Skip to content

Commit 90ca813

Browse files
committed
fix: show 0 size for empty folders
1 parent 5037199 commit 90ca813

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

resources/js/components/cards/data/FolderCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const mediaType = computed(() => {
112112
{{ data.file_count }} {{ mediaType }}{{ data.file_count !== 1 ? 's' : '' }}
113113
</h4>
114114
<h4 class="w-fit truncate text-nowrap sm:text-right lg:hidden xl:block">
115-
{{ data.total_size ? formatFileSize(data.total_size) : '' }}
115+
{{ formatFileSize(data.total_size ?? 0) }}
116116
</h4>
117117
</section>
118118
</span>

0 commit comments

Comments
 (0)