GitLab will be upgraded on June 23th evening. During the upgrade the service will be unavailable, sorry for the inconvenience.

Commit 720f3838 authored by Marjolaine Bodin's avatar Marjolaine Bodin

#487 persit logbook on local storage

parent 700c5044
Pipeline #46401 passed with stage
in 3 minutes and 37 seconds
......@@ -17,7 +17,7 @@ const initialState = {
/**
* The logbook reducer. THe reducer takes the current state and the action and returns the new state
*/
const logbookReducer = (state = initialState, action) => {
const logbook = (state = initialState, action) => {
switch (action.type) {
case SET_LOGBOOK_CONTEXT: {
state = {
......@@ -48,4 +48,4 @@ const logbookReducer = (state = initialState, action) => {
return state;
};
export default logbookReducer;
export default logbook;
......@@ -9,7 +9,7 @@ import reducer from './reducers';
const persistConfig = {
key: 'root',
storage: LocalStorage,
whitelist: ['user'],
whitelist: ['user', 'logbook'],
};
const persistedReducer = persistReducer(persistConfig, reducer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment