We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c687a9b commit b0429b2Copy full SHA for b0429b2
lib/components/FilePicker/FileList.vue
@@ -60,7 +60,7 @@
60
<LoadingTableRow v-for="index in skeletonNumber" :key="index" :show-checkbox="multiselect" />
61
</template>
62
<template v-else>
63
- <FileListRow v-for="file in sortedFiles"
+ <FileListRow v-for="file of sortedFiles"
64
:key="file.fileid || file.path"
65
:allow-pick-directory="allowPickDirectory"
66
:show-checkbox="multiselect"
@@ -212,7 +212,7 @@ const fileContainer = ref<HTMLDivElement>()
212
}
213
214
// container height - 50px table header / row height of 50px
215
- skeletonNumber.value = Math.floor((height - 50) / 50)
+ skeletonNumber.value = Math.max(1, Math.floor((height - 50) / 50))
216
})
217
onMounted(() => {
218
window.addEventListener('resize', resize)
0 commit comments