Remove library item listener from edit episode modal

This commit is contained in:
advplyr 2023-03-05 12:28:20 -06:00
parent 72396c5a98
commit dccad3055b
4 changed files with 21 additions and 36 deletions

View file

@ -148,15 +148,12 @@ export default {
},
async updateDetails(updatedDetails) {
this.isProcessing = true
const updateResult = await this.$axios
.$patch(`/api/podcasts/${this.libraryItem.id}/episode/${this.episodeId}`, updatedDetails)
.catch((error) => {
const errorMsg = error.response && error.response.data ? error.response.data : 'Failed to update episode';
console.error('Failed update episode', error)
this.isProcessing = false
this.$toast.error(errorMsg)
return false
});
const updateResult = await this.$axios.$patch(`/api/podcasts/${this.libraryItem.id}/episode/${this.episodeId}`, updatedDetails).catch((error) => {
console.error('Failed update episode', error)
this.isProcessing = false
this.$toast.error(error?.response?.data || 'Failed to update episode')
return false
})
this.isProcessing = false
if (updateResult) {