fix(front): prevent channels widget from repopulating on triggered reload
This commit is contained in:
		
							parent
							
								
									872a5d0250
								
							
						
					
					
						commit
						cd1c58e452
					
				|  | @ -49,7 +49,7 @@ const fetchData = async (url = 'channels/') => { | ||||||
|     const response = await axios.get(url, { params }) |     const response = await axios.get(url, { params }) | ||||||
|     nextPage.value = response.data.next |     nextPage.value = response.data.next | ||||||
|     count.value = response.data.count |     count.value = response.data.count | ||||||
|     channels.push(...response.data.results) |     channels.splice(0, channels.length, ...response.data.results) | ||||||
|     emit('fetched', response.data) |     emit('fetched', response.data) | ||||||
|   } catch (error) { |   } catch (error) { | ||||||
|     errors.value = (error as BackendError).backendErrors |     errors.value = (error as BackendError).backendErrors | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 ArneBo
						ArneBo