Skip to content

Commit 5217bc7

Browse files
committed
Fix bug, after restore, library should be reloaded
1 parent 16ac582 commit 5217bc7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/redux-ducks/library.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ export default function libraryReducer(
117117
},
118118
};
119119

120+
case UPLOAD_RESTORE_SUCCESS:
121+
return {
122+
...state,
123+
libraryLoaded: false, // force library refresh
124+
reloadUnread: true,
125+
};
126+
120127
default:
121128
return state;
122129
}

0 commit comments

Comments
 (0)