Skip to content

Commit

Permalink
Merge pull request #280 from DigitalSlideArchive/guard-height
Browse files Browse the repository at this point in the history
Guard the list items height check
  • Loading branch information
manthey authored Dec 16, 2024
2 parents 9d7cdd4 + d9e44f8 commit 4cc897f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/FileBrowser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const calculateVisibleItems = () => {
const listHeight = ref(0);
const visibleItems = ref(0);
// Determine the height of each list item
const listItemHeight = listItems ? listItems[0].clientHeight : 0;
const listItemHeight = listItems && listItems[0] ? listItems[0].clientHeight : 0;
directoryData.value.childrenImages.forEach(() => {
listHeight.value += listItemHeight;
Expand Down

0 comments on commit 4cc897f

Please sign in to comment.