diff --git a/front/src/components/channels/UploadForm.vue b/front/src/components/channels/UploadForm.vue index 742d0f408..06ca83f40 100644 --- a/front/src/components/channels/UploadForm.vue +++ b/front/src/components/channels/UploadForm.vue @@ -108,9 +108,9 @@ const isLoading = ref(false) const selectedChannel = computed(() => props.channel ? props.channel - : availableChannels.value.length === 0 + : availableChannels.value.count === 0 ? (createEmptyChannel(), null) - : availableChannels.value.length === 1 + : availableChannels.value.count === 1 ? availableChannels.value[0] : availableChannels.value.find(({ artist }) => artist.id === channelDropdownId.value) )