From 2d2ffca91809f99300a8467e0d13009e4cc15704 Mon Sep 17 00:00:00 2001 From: ArneBo Date: Mon, 17 Mar 2025 00:01:44 +0100 Subject: [PATCH] pablos answer --- front/src/components/channels/UploadForm.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front/src/components/channels/UploadForm.vue b/front/src/components/channels/UploadForm.vue index 7261579a4..0294be7fc 100644 --- a/front/src/components/channels/UploadForm.vue +++ b/front/src/components/channels/UploadForm.vue @@ -141,7 +141,8 @@ const createEmptyChannel = async () => { const fetchChannels = async () => { isLoading.value = true try { - const response = await axios.get('channels/', { params: { scope: 'me' /* Ask Pablo: which param to filter for `music` | `podcast`? */ } }) + const response = await axios.get('channels/', { params: { scope: 'me' /* Ask Pablo: which param to filter for `music` | `podcast`? + Answer: const isPodcast = computed(() => channel.value?.artist?.content_category === 'podcast')*/ } }) availableChannels.value = response.data.results } catch (error) { errors.value = (error as BackendError).backendErrors