Fixed bug causing changes in the sources (e.g. via push) not to be reflected in UI

This commit is contained in:
Philipp Czora
2018-12-21 13:39:24 +01:00
parent a9f54d3c69
commit 5202c80e95

View File

@@ -92,8 +92,8 @@ export default function reducer(
): any {
if (action.itemId && action.type === FETCH_SOURCES_SUCCESS) {
return {
[action.itemId]: action.payload,
...state
...state,
[action.itemId]: action.payload
};
}
return state;