From 61b4abb688b8a33b06aa8902f0122047b01896ab Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Thu, 20 Sep 2018 16:49:47 +0100 Subject: [PATCH] Added reset for store. --- frontend/src/store.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/store.js b/frontend/src/store.js index 41848dc..f13691c 100644 --- a/frontend/src/store.js +++ b/frontend/src/store.js @@ -22,6 +22,14 @@ export default new Vuex.Store({ }, setType(state, newType) { state.type = newType; + }, + resetStore(state) { + state = { + site: null, + tutors: [], + description: null, + type: null + }; } }, actions: {}