fix(front): prevent channels widget from repopulating on triggered reload

This commit is contained in:
ArneBo 2025-02-14 23:10:34 +01:00
parent 872a5d0250
commit cd1c58e452
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ const fetchData = async (url = 'channels/') => {
const response = await axios.get(url, { params })
nextPage.value = response.data.next
count.value = response.data.count
channels.push(...response.data.results)
channels.splice(0, channels.length, ...response.data.results)
emit('fetched', response.data)
} catch (error) {
errors.value = (error as BackendError).backendErrors