Skip to content

Commit

Permalink
Added key to dynamicScrollerItem
Browse files Browse the repository at this point in the history
  • Loading branch information
Albermonte committed Sep 6, 2023
1 parent b40dd7f commit 22bf63e
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/components/elements/DesktopList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,25 +46,6 @@ watch(selectedUuid, (uuid) => {
const index = props.locations.findIndex(location => location.uuid === uuid)
scroller.value.scrollToItem(index - 2) // -2 to scroll the location to 2 entries from the top of the list
})
// const heights = {
// border: 0.8,
// py: 20 * 2,
// title: 20.8 + 4,
// categoryAndRating: 16,
// buyAndSell: 16,
// address: 18,
// } as const
// function getPoolType(l: Location): Location & { itemSize: number } {
// let itemSize = heights.border + heights.py + heights.title + (l.address ? heights.address : 0)
// if (!l.isAtm)
// itemSize += l.category || l.rating ? heights.categoryAndRating : 0
// else if (l.isAtm)
// itemSize += heights.buyAndSell
// return Object.assign(l, { itemSize })
// }
</script>

<template>
Expand All @@ -80,6 +61,7 @@ watch(selectedUuid, (uuid) => {
>
<template #default="{ item: location, active }">
<DynamicScrollerItem
:key="location.uuid"
:item="location"
:active="active"
>
Expand Down

0 comments on commit 22bf63e

Please sign in to comment.