From 8fb3b0e9eddac6deb32772dc233df66590d95dc9 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Thu, 16 Jul 2020 16:40:49 +0900 Subject: [PATCH] Keep checkpoint for the all projects --- frontend/store/projects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) }