Fix addToSessionSearchHistory (#2124)
payload.data is already concatenated in Search.js
This commit is contained in:
parent
099c8778c8
commit
dc4a828820
|
@ -69,7 +69,7 @@ export default Vue.extend({
|
|||
},
|
||||
|
||||
backwardText: function () {
|
||||
return this.$t('Backward')
|
||||
return this.$t('Back')
|
||||
},
|
||||
|
||||
newWindowText: function () {
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
icon="arrow-left"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
:title="forwardText"
|
||||
:title="backwardText"
|
||||
@click="historyBack"
|
||||
@keypress="historyBack"
|
||||
/>
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue