diff --git a/frontend/store/projects.js b/frontend/store/projects.js index 874fa473..979d8c29 100644 --- a/frontend/store/projects.js +++ b/frontend/store/projects.js @@ -243,7 +243,7 @@ export const mutations = { state.current = payload }, saveSearchOptions(state, options) { - const checkpoint = {} + const checkpoint = JSON.parse(localStorage.getItem('checkpoint')) || {} checkpoint[state.current.id] = options localStorage.setItem('checkpoint', JSON.stringify(checkpoint)) }