diff --git a/front/src/components/audio/track/Widget.vue b/front/src/components/audio/track/Widget.vue
index 6c4748c5e..524b8d3b3 100644
--- a/front/src/components/audio/track/Widget.vue
+++ b/front/src/components/audio/track/Widget.vue
@@ -1,7 +1,7 @@
@@ -119,7 +124,7 @@ watch(() => props.websocketHandlers.includes('Listen'), (to) => {
@@ -127,7 +132,6 @@ watch(() => props.websocketHandlers.includes('Listen'), (to) => {
{{ t('components.audio.track.Widget.empty.noResults') }}
-
import type { Library } from '~/types'
-import { ref, reactive } from 'vue'
+import { ref, reactive, onMounted, watch } from 'vue'
import { useStore } from '~/store'
import { useI18n } from 'vue-i18n'
@@ -38,7 +38,7 @@ const fetchData = async (url = props.url) => {
try {
const response = await axios.get(url, {
params: {
- page_size: 6
+ page_size: 3
}
})
@@ -52,7 +52,13 @@ const fetchData = async (url = props.url) => {
isLoading.value = false
}
-fetchData()
+onMounted(() => {
+ fetchData()
+})
+
+watch(() => props.url, () => {
+ fetchData()
+})