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 () {
|
backwardText: function () {
|
||||||
return this.$t('Backward')
|
return this.$t('Back')
|
||||||
},
|
},
|
||||||
|
|
||||||
newWindowText: function () {
|
newWindowText: function () {
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
icon="arrow-left"
|
icon="arrow-left"
|
||||||
role="button"
|
role="button"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
:title="forwardText"
|
:title="backwardText"
|
||||||
@click="historyBack"
|
@click="historyBack"
|
||||||
@keypress="historyBack"
|
@keypress="historyBack"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -971,7 +971,7 @@ const mutations = {
|
||||||
})
|
})
|
||||||
|
|
||||||
if (sameSearch !== -1) {
|
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
|
state.sessionSearchHistory[sameSearch].nextPageRef = payload.nextPageRef
|
||||||
} else {
|
} else {
|
||||||
state.sessionSearchHistory.push(payload)
|
state.sessionSearchHistory.push(payload)
|
||||||
|
|
Loading…
Reference in New Issue