Skip to content
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

Commit 390c2f1

Browse files
authored
Merge pull request #46 from syzer/master
Fix duplicated switch statement.
2 parents 4dbab9d + b43d068 commit 390c2f1

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/reducers/articleList.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,6 @@ export default (state = {}, action) => {
5656
currentPage: 0,
5757
tag: null
5858
};
59-
case 'APPLY_TAG_FILTER':
60-
return {
61-
...state,
62-
pager: action.pager,
63-
articles: action.payload.articles,
64-
articlesCount: action.payload.articlesCount,
65-
tab: null,
66-
tag: action.tag,
67-
currentPage: 0
68-
};
6959
case 'PROFILE_PAGE_LOADED':
7060
case 'PROFILE_FAVORITES_PAGE_LOADED':
7161
return {

src/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ const getMiddleware = () => {
1212
}
1313
}
1414

15-
const store = createStore(reducer, getMiddleware());
15+
const store = createStore(reducer, getMiddleware(), window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__())
1616

1717
export default store;

0 commit comments

Comments
 (0)