Skip to content

Commit b0ac3c9

Browse files
authored
Merge pull request #1363 from nextcloud-libraries/fix/stable4-range
fix: Prevent invalid range for skeleton number
2 parents c747090 + 35c21f1 commit b0ac3c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/components/FilePicker/FileList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ const fileContainer = ref<HTMLDivElement>()
201201
}
202202
}
203203
// container height - 50px table header / row height of 50px
204-
skeletonNumber.value = Math.floor((height - 50) / 50)
204+
skeletonNumber.value = Math.max(1, Math.floor((height - 50) / 50))
205205
})
206206
onMounted(() => {
207207
window.addEventListener('resize', resize)

0 commit comments

Comments
 (0)