diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-03-28 17:10:40 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-03-28 17:10:40 +0100 |
| commit | 27a557b5c5af1fee23c8be1ffae668b5ed6ba28d (patch) | |
| tree | 3734eeb3e24b057a5191e18e2c80a2feef13f4e3 /scraper/client/store.js | |
| parent | 36a44fe10d2501312d16aa5f70b31fd3585fb996 (diff) | |
fix sorting
Diffstat (limited to 'scraper/client/store.js')
| -rw-r--r-- | scraper/client/store.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scraper/client/store.js b/scraper/client/store.js index b199ae29..6da60cbe 100644 --- a/scraper/client/store.js +++ b/scraper/client/store.js @@ -15,7 +15,8 @@ const initialState = () => ({ unknownCitations: {}, verify: {}, verifications: {}, - options: {} + options: {}, + sortedCitations: [], }) export default function apiReducer(state = initialState(), action) { @@ -45,6 +46,13 @@ export default function apiReducer(state = initialState(), action) { paperKey: action.paperKey } + case types.system.set_sorted_citations: + console.log(action.sortedCitations || []) + return { + ...state, + sortedCitations: action.sortedCitations || [], + } + default: return state } |
