diff --git a/src/store/modules/images.js b/src/store/modules/images.js index 9bd3001e..83cbe81b 100644 --- a/src/store/modules/images.js +++ b/src/store/modules/images.js @@ -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.