Fix addToSessionSearchHistory (#2124)

payload.data is already concatenated in Search.js
This commit is contained in:
bob1520 2022-03-26 01:20:22 +00:00 committed by GitHub
parent 099c8778c8
commit dc4a828820
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ export default Vue.extend({
},
backwardText: function () {
return this.$t('Backward')
return this.$t('Back')
},
newWindowText: function () {

View File

@ -18,7 +18,7 @@
icon="arrow-left"
role="button"
tabindex="0"
:title="forwardText"
:title="backwardText"
@click="historyBack"
@keypress="historyBack"
/>

View File

@ -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)