Skip to content

Commit

Permalink
Add mutation to fix minor vuex bug
Browse files Browse the repository at this point in the history
  • Loading branch information
timbeccue committed Oct 7, 2023
1 parent 240233e commit 9104c80
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/store/modules/images.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,10 @@ const actions = {
// Reassigning value of current_image to new_image
// If a user takes smart stack photos and they select the image as it's updating,
// then the selected image (i.e. the thumbnail with the surrounding yellow border) keeps the yellow border
let current_image = state.current_image
const current_image_SMARTSTK = current_image.header && current_image.header.SMARTSTK
const current_image_SMARTSTK = state.current_image.header && state.current_image.header.SMARTSTK
const new_image_SMARTSTK = new_image.header && new_image.header.SMARTSTK
if (current_image_SMARTSTK && current_image_SMARTSTK !== 'no' && current_image_SMARTSTK === new_image_SMARTSTK) {
current_image = new_image
commit('setCurrentImage', new_image)
}

// We don't have a toggle implemented yet.
Expand Down

0 comments on commit 9104c80

Please sign in to comment.