Skip to content

Commit

Permalink
Merge pull request #866 from biigle/patch-1
Browse files Browse the repository at this point in the history
Fix image grid pinned image key
  • Loading branch information
mzur authored Jun 27, 2024
2 parents 98a64c4 + 4c99186 commit 0989262
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion resources/assets/js/volumes/components/imageGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="image-grid__images" ref="images">
<image-grid-image
v-if="hasPinnedImage"
:key="pinnedImage.id"
:key="pinnedImageKey"
:pinnable="pinnable"
:image="pinnedImage"
:is-pinned="true"
Expand Down Expand Up @@ -159,6 +159,13 @@ export default {
hasPinnedImage() {
return this.pinnedImage !== null;
},
pinnedImageKey() {
if (!this.hasPinnedImage) {
return '';
}
return `r-${this.pinnedImage.id}`;
}
},
methods: {
updateDimensions() {
Expand Down

0 comments on commit 0989262

Please sign in to comment.