diff --git a/src/store/geotags.js b/src/store/geotags.js index a1e8a42d..6ff2ed3b 100644 --- a/src/store/geotags.js +++ b/src/store/geotags.js @@ -49,7 +49,6 @@ export default function reducer(state = initialState, action) { break; } - case recentTags.SET_RECENT_TAGS: case g.SET_GEOTAGS: { const geotags = keyBy(action.payload.geotags, 'url_name'); state = fromJS(geotags); @@ -57,6 +56,13 @@ export default function reducer(state = initialState, action) { break; } + case recentTags.SET_RECENT_TAGS: { + const geotags = keyBy(action.payload.geotags.entries, 'url_name'); + state = state.merge(fromJS(geotags)); + + break; + } + case g.CONTINENT_NAV__SET: { const geotags = keyBy(concat(action.payload.continents, action.payload.countries), 'url_name'); state = state.merge(fromJS(geotags)); diff --git a/src/store/hashtags.js b/src/store/hashtags.js index 8ceca9a2..07cf2a0a 100644 --- a/src/store/hashtags.js +++ b/src/store/hashtags.js @@ -33,7 +33,6 @@ export default function reducer(state = initialState, action) { break; } - case recentTags.SET_RECENT_TAGS: case h.SET_HASHTAGS: { const hashtags = keyBy(action.payload.hashtags, 'name'); state = state.merge(fromJS(hashtags)); @@ -41,6 +40,13 @@ export default function reducer(state = initialState, action) { break; } + case recentTags.SET_RECENT_TAGS: { + const hashtags = keyBy(action.payload.hashtags.entries, 'name'); + state = state.merge(fromJS(hashtags)); + + break; + } + case users.SET_CURRENT_USER: { if (!action.payload.user) { break; diff --git a/src/store/schools.js b/src/store/schools.js index eeb76f0f..f701ee3c 100644 --- a/src/store/schools.js +++ b/src/store/schools.js @@ -49,7 +49,6 @@ export default function reducer(state = initialState, action) { break; } - case recentTags.SET_RECENT_TAGS: case s.SET_SCHOOLS: { const schools = keyBy(action.payload.schools.map(school => cleanupSchoolObject(school)), 'id'); state = state.merge(fromJS(schools)); @@ -57,6 +56,13 @@ export default function reducer(state = initialState, action) { break; } + case recentTags.SET_RECENT_TAGS: { + const schools = keyBy(action.payload.schools.entries.map(school => cleanupSchoolObject(school)), 'id'); + state = state.merge(fromJS(schools)); + + break; + } + case users.SET_CURRENT_USER: { if (!action.payload.user) { break;