Code Review
/
aai
/
sparky-fe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add tests to Inventory module
[aai/sparky-fe.git]
/
src
/
app
/
inventory
/
InventoryReducer.js
diff --git
a/src/app/inventory/InventoryReducer.js
b/src/app/inventory/InventoryReducer.js
index
c42fc97
..
6ae3a5f
100644
(file)
--- a/
src/app/inventory/InventoryReducer.js
+++ b/
src/app/inventory/InventoryReducer.js
@@
-28,21
+28,18
@@
export default(state = {}, action) => {
...state,
mapPlotPoints: action.data.plotPoints
};
...state,
mapPlotPoints: action.data.plotPoints
};
- break;
case InventoryActionTypes.COUNT_BY_ENTITY_SUCCESS:
return {
...state,
countByType: action.data.countByType
};
case InventoryActionTypes.COUNT_BY_ENTITY_SUCCESS:
return {
...state,
countByType: action.data.countByType
};
- break;
case InventoryActionTypes.COUNT_BY_DATE_SUCCESS:
return {
...state,
countByDate: action.data.countByDate
};
case InventoryActionTypes.COUNT_BY_DATE_SUCCESS:
return {
...state,
countByDate: action.data.countByDate
};
- break;
case InventoryActionTypes.TOPOGRAPHIC_QUERY_FAILED:
case InventoryActionTypes.COUNT_BY_ENTITY_FAILED:
case InventoryActionTypes.TOPOGRAPHIC_QUERY_FAILED:
case InventoryActionTypes.COUNT_BY_ENTITY_FAILED:
@@
-52,7
+49,6
@@
export default(state = {}, action) => {
feedbackMsgSeverity: action.data.severity,
feedbackMsgText: action.data.message
};
feedbackMsgSeverity: action.data.severity,
feedbackMsgText: action.data.message
};
- break;
default:
break;
default:
break;