Skip to content

Commit

Permalink
fix: Don't proceed with album creation if it fails
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Jul 3, 2024
1 parent df8c363 commit 7ccddc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Albums/AlbumForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ export default {
},
})
if (album === undefined) {
return
}
if (this.albumLocation !== '' || collaborators.length !== 0) {
album = await this.updateCollection(
{
Expand Down

0 comments on commit 7ccddc0

Please sign in to comment.