Change response shape from redis_info endpoint

This commit is contained in:
Ken Hibino
2021-01-04 09:31:10 -08:00
parent 4951d2f571
commit 0c3cd80728
6 changed files with 42 additions and 8 deletions

View File

@@ -8,11 +8,13 @@ import { RedisInfo } from "../api";
interface RedisInfoState {
loading: boolean;
address: string;
data: RedisInfo | null;
}
const initialState: RedisInfoState = {
loading: false,
address: "",
data: null,
};
@@ -36,7 +38,8 @@ export default function redisInfoReducer(
case GET_REDIS_INFO_SUCCESS:
return {
loading: false,
data: action.payload,
address: action.payload.address,
data: action.payload.info,
};
default: