Skip to content

Commit

Permalink
- FIX: Fixed small issue on image details page.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-raubach committed Nov 1, 2024
1 parent b3c7ec1 commit 0d87492
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/views/ImageDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,12 @@ export default {
apiPatchImage(this.image)
},
update: function () {
apiGetImageById(this.imageId, result => {
this.image = result
apiGetImageById(this.imageId, imageResult => {
this.image = imageResult
apiPostAlbumById(result.albumId, null, result => {
if (result && result.data && result.data.length > 0) {
this.album = result.data[0]
apiPostAlbumById(imageResult.albumId, null, albumResult => {
if (albumResult && albumResult.data && albumResult.data.length > 0) {
this.album = albumResult.data[0]
}
})
})
Expand Down

0 comments on commit 0d87492

Please sign in to comment.