Fixed flow issues in tests

This commit is contained in:
Philipp Czora
2018-11-07 16:42:26 +01:00
parent e322a1a80b
commit e5dcae6874
6 changed files with 50 additions and 20 deletions

View File

@@ -91,7 +91,7 @@ export default function reducer(
state: any = {},
action: Action = { type: "UNKNOWN" }
): any {
if (action.type === FETCH_SOURCES_SUCCESS) {
if (action.itemId && action.type === FETCH_SOURCES_SUCCESS) {
return {
[action.itemId]: action.payload,
...state