We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d4b7c89 + a8cf613 commit f0de656Copy full SHA for f0de656
frontend/store/pagination.js
@@ -29,7 +29,7 @@ export const mutations = {
29
localStorage.setItem('checkpoint', JSON.stringify(checkpoint))
30
},
31
loadPage(state) {
32
- const checkpoint = JSON.parse(localStorage.getItem('checkpoint'))
+ const checkpoint = JSON.parse(localStorage.getItem('checkpoint')) || {}
33
state.page = checkpoint[state.projectId] ? checkpoint[state.projectId] : 1
34
35
setProjectId(state, projectId) {
0 commit comments