diff --git a/front/src/components/channels/AlbumModal.vue b/front/src/components/channels/AlbumModal.vue index df7304d32..efb8ba152 100644 --- a/front/src/components/channels/AlbumModal.vue +++ b/front/src/components/channels/AlbumModal.vue @@ -3,7 +3,7 @@ import type { Channel, BackendError } from '~/types' import axios from 'axios' -import { watch, ref, emit } from 'vue' +import { watch, ref } from 'vue' import { useI18n } from 'vue-i18n' import { useModal } from '~/ui/composables/useModal.ts' @@ -24,8 +24,6 @@ const errors = ref([]) const {isOpen:show} = useModal('album') -defineEmits(['created']) - watch(show, () => { isLoading.value = false submittable.value = false diff --git a/front/src/components/channels/AlbumSelect.vue b/front/src/components/channels/AlbumSelect.vue index 0cc51f827..f288f4b03 100644 --- a/front/src/components/channels/AlbumSelect.vue +++ b/front/src/components/channels/AlbumSelect.vue @@ -22,7 +22,7 @@ const fetchAlbums = async () => { isLoading.value = true const response = await axios.get('albums/', { params: { - artist: model.value.channel.artist.id, + artist: model.value.channel.artist?.id, include_channels: 'true' } }) @@ -41,7 +41,7 @@ watch(albums, (value) => {