From 35c21f1bde9201c8ad5874d18e0e442ecb456410 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 21 Jun 2024 20:08:28 +0200 Subject: [PATCH] fix: Prevent invalid range for skeleton number Signed-off-by: Ferdinand Thiessen --- lib/components/FilePicker/FileList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/components/FilePicker/FileList.vue b/lib/components/FilePicker/FileList.vue index 83ce5024..c638ad8f 100644 --- a/lib/components/FilePicker/FileList.vue +++ b/lib/components/FilePicker/FileList.vue @@ -201,7 +201,7 @@ const fileContainer = ref() } } // container height - 50px table header / row height of 50px - skeletonNumber.value = Math.floor((height - 50) / 50) + skeletonNumber.value = Math.max(1, Math.floor((height - 50) / 50)) }) onMounted(() => { window.addEventListener('resize', resize)