From 0d874925cdee37438dde6bf15c511f1ee01a000a Mon Sep 17 00:00:00 2001 From: sebastian-raubach Date: Fri, 1 Nov 2024 12:59:50 +0000 Subject: [PATCH] - FIX: Fixed small issue on image details page. --- src/views/ImageDetails.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/ImageDetails.vue b/src/views/ImageDetails.vue index 045d091..16939b6 100644 --- a/src/views/ImageDetails.vue +++ b/src/views/ImageDetails.vue @@ -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] } }) })