Skip to content

Commit

Permalink
Merge pull request #20 from SlovakNationalGallery/MG-96
Browse files Browse the repository at this point in the history
Refresh items on mounted component
  • Loading branch information
rastislav-chynoransky committed May 27, 2024
2 parents 6ff75ba + 550deb3 commit 6a9aefb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@ import Pager from '~/components/general/Pager.vue'
import { useControls } from '~/composables/controls'
import Filter from '~/components/general/Filter.vue'
const { items, total, page, lastPage, isLoading, sortBy, sortDirection } = await useControls()
const { items, total, page, lastPage, isLoading, sortBy, sortDirection, refresh } =
await useControls()
onMounted(() => {
refresh()
})
</script>

0 comments on commit 6a9aefb

Please sign in to comment.