From dc4a8288200bb2d681b9198d9384b9bee1b4e7ff Mon Sep 17 00:00:00 2001 From: bob1520 <80553357+hockerschwan@users.noreply.github.com> Date: Sat, 26 Mar 2022 01:20:22 +0000 Subject: [PATCH] Fix addToSessionSearchHistory (#2124) payload.data is already concatenated in Search.js --- src/renderer/components/top-nav/top-nav.js | 2 +- src/renderer/components/top-nav/top-nav.vue | 2 +- src/renderer/store/modules/utils.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/components/top-nav/top-nav.js b/src/renderer/components/top-nav/top-nav.js index 99af0aae..6d8921d9 100644 --- a/src/renderer/components/top-nav/top-nav.js +++ b/src/renderer/components/top-nav/top-nav.js @@ -69,7 +69,7 @@ export default Vue.extend({ }, backwardText: function () { - return this.$t('Backward') + return this.$t('Back') }, newWindowText: function () { diff --git a/src/renderer/components/top-nav/top-nav.vue b/src/renderer/components/top-nav/top-nav.vue index 731f2645..854e9f6b 100644 --- a/src/renderer/components/top-nav/top-nav.vue +++ b/src/renderer/components/top-nav/top-nav.vue @@ -18,7 +18,7 @@ icon="arrow-left" role="button" tabindex="0" - :title="forwardText" + :title="backwardText" @click="historyBack" @keypress="historyBack" /> diff --git a/src/renderer/store/modules/utils.js b/src/renderer/store/modules/utils.js index 3482f2b6..5cc78f7b 100644 --- a/src/renderer/store/modules/utils.js +++ b/src/renderer/store/modules/utils.js @@ -971,7 +971,7 @@ const mutations = { }) if (sameSearch !== -1) { - state.sessionSearchHistory[sameSearch].data = state.sessionSearchHistory[sameSearch].data.concat(payload.data) + state.sessionSearchHistory[sameSearch].data = payload.data state.sessionSearchHistory[sameSearch].nextPageRef = payload.nextPageRef } else { state.sessionSearchHistory.push(payload)