Skip to content

Commit

Permalink
fix: fix featured tags media only working on first row
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Feb 5, 2024
1 parent a1b8975 commit 39c4114
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/pages/home/FeaturedTags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
}[]
}>()
const preselectedTags = useState('preselectedTags' + props.tags[0].path)
const tagsKey = props.tags[0].path
callOnce(() => {
const preselectedTags = useState('preselectedTags' + tagsKey)
callOnce(tagsKey, () => {
preselectedTags.value = props.tags.map((tag) => ({
...tag,
images: [getRandomImage(tag.images)]
Expand Down

0 comments on commit 39c4114

Please sign in to comment.