Skip to content

Commit

Permalink
Fix bug, after restore, library should be reloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Ligerx committed Jun 23, 2018
1 parent 16ac582 commit 5217bc7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/redux-ducks/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ export default function libraryReducer(
},
};

case UPLOAD_RESTORE_SUCCESS:
return {
...state,
libraryLoaded: false, // force library refresh
reloadUnread: true,
};

default:
return state;
}
Expand Down

0 comments on commit 5217bc7

Please sign in to comment.