mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-01 20:38:12 +08:00
add loading state for cells to ui
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user