We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e32d449 commit d9e44f8Copy full SHA for d9e44f8
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