We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9d7cdd4 + d9e44f8 commit 4cc897fCopy full SHA for 4cc897f
1 file changed
client/src/components/FileBrowser.vue
@@ -89,7 +89,7 @@ const calculateVisibleItems = () => {
89
const listHeight = ref(0);
90
const visibleItems = ref(0);
91
// Determine the height of each list item
92
- const listItemHeight = listItems ? listItems[0].clientHeight : 0;
+ const listItemHeight = listItems && listItems[0] ? listItems[0].clientHeight : 0;
93
94
directoryData.value.childrenImages.forEach(() => {
95
listHeight.value += listItemHeight;
0 commit comments