client/src/store/configureStore.js
changeset 72 7634b424f426
parent 68 6e18b31b0ad5
child 74 043477fd5c5c
--- a/client/src/store/configureStore.js	Wed Jun 21 14:12:45 2017 +0200
+++ b/client/src/store/configureStore.js	Thu Jun 22 10:47:10 2017 +0200
@@ -28,6 +28,7 @@
   isAuthenticated: false,
   currentUser: null,
   token: '',
+  autoSubmit: false,
   login: Immutable.Map({
     loading: false,
     success: false,
@@ -43,7 +44,7 @@
 const persistOptions = {
   storage: localForage,
   transforms: [immutableTransform(immutableTransformConfig)],
-  whitelist: ['sessions', 'notes', 'isAuthenticated', 'currentUser', 'token', 'offline']
+  whitelist: ['sessions', 'notes', 'isAuthenticated', 'currentUser', 'token', 'offline', 'autoSubmit']
 }
 
 const apiClient = new APIClient(config.apiRootUrl);