Skip to content

Commit

Permalink
Merge pull request #234 from Fra146/develop
Browse files Browse the repository at this point in the history
Fix endless loading when deleting public cocktail link
  • Loading branch information
karlomikus authored Oct 1, 2024
2 parents 8a93dd4 + 1db7848 commit e64a948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Cocktail/PublicLinkDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default {
generatePublicLink() {
this.isLoading = true
BarAssistantClient.savePublicCocktailLink(this.cocktail.id).then(resp => {
this.publicData = resp.data
this.publicData = resp.data || {}
this.isLoading = false
}).catch(e => {
this.$toast.error(e.message)
Expand All @@ -77,7 +77,7 @@ export default {
deletePublicLink() {
this.isLoading = true
BarAssistantClient.deletePublicCocktailLink(this.cocktail.id).then(resp => {
this.publicData = resp.data
this.publicData = resp.data || {}
this.isLoading = false
}).catch(e => {
this.$toast.error(e.message)
Expand Down

0 comments on commit e64a948

Please sign in to comment.