fix(front): uploadform available channels count #2081

This commit is contained in:
ArneBo 2025-03-11 10:10:25 +01:00
parent 8e88c356bd
commit 6d90fc8107
1 changed files with 2 additions and 2 deletions

View File

@ -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)
)