From 9dce43fd58ffff68675b8f3839376dce2b87da43 Mon Sep 17 00:00:00 2001 From: William Petit Date: Tue, 19 May 2020 17:20:31 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Int=C3=A9gration=20de=20github.com/zalmoxis?= =?UTF-8?q?us/redux-devtools-extension?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/store/store.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/store/store.ts b/client/src/store/store.ts index 9ab875e..911fd81 100644 --- a/client/src/store/store.ts +++ b/client/src/store/store.ts @@ -1,4 +1,4 @@ -import { createStore, applyMiddleware } from 'redux' +import { createStore, applyMiddleware, compose } from 'redux' import createSagaMiddleware from 'redux-saga' import { rootReducer } from './reducers/root' import { rootSaga } from './sagas/root' @@ -14,6 +14,8 @@ if (process.env.NODE_ENV !== 'production') { reduxMiddlewares.push(loggerMiddleware); } +const composeEnhancers = (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; + // create the saga middleware const sagaMiddleware = createSagaMiddleware() reduxMiddlewares.push(sagaMiddleware); @@ -21,7 +23,7 @@ reduxMiddlewares.push(sagaMiddleware); // mount it on the Store export const store = createStore( rootReducer, - applyMiddleware(...reduxMiddlewares) + composeEnhancers(applyMiddleware(...reduxMiddlewares)), ) // then run the saga From 4e9298f5b66fd94b8e31f7bd366b6256194c7a59 Mon Sep 17 00:00:00 2001 From: William Petit Date: Tue, 19 May 2020 17:21:46 +0200 Subject: [PATCH 2/2] Filtrage des PRs de la liste des issues --- client/src/store/sagas/issues.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/store/sagas/issues.ts b/client/src/store/sagas/issues.ts index a53d197..b2fbc6b 100644 --- a/client/src/store/sagas/issues.ts +++ b/client/src/store/sagas/issues.ts @@ -18,7 +18,7 @@ export function* fetchIssuesSaga(action: any) { if (pageIssues.length === 0) { break; } - issues.push(...pageIssues); + issues.push(...pageIssues.filter(issue => issue.pull_request === null)); page++; }