add loading state for cells to ui

This commit is contained in:
Colin Megill
2017-10-16 10:55:19 -07:00
parent 9676926025
commit d31dde7436
2 changed files with 13 additions and 2 deletions
+2
View File
@@ -12,11 +12,13 @@ const Cells = (state = {
case "request cells success":
return Object.assign({}, state, {
error: null,
loading: false,
cells: action.data,
});
case "request cells error":
return Object.assign({}, state, {
cells: null,
loading: false,
error: action.data
});
default: