From 9104c80cb2945e1b15868cb97147605900612823 Mon Sep 17 00:00:00 2001 From: Tim Beccue Date: Fri, 6 Oct 2023 22:10:08 -0400 Subject: [PATCH] Add mutation to fix minor vuex bug --- src/store/modules/images.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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.