fix: code indentation
This commit is contained in:
parent
b1b9beeba7
commit
979c2bd6e1
@ -21,7 +21,7 @@ const initialState = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const getState = () => dispatch =>
|
const getState = () => dispatch =>
|
||||||
request.get('v1/console/server/state').then(res =>
|
request.get('v1/console/server/state').then(res => {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: GET_STATE,
|
type: GET_STATE,
|
||||||
data: {
|
data: {
|
||||||
@ -29,8 +29,8 @@ const getState = () => dispatch =>
|
|||||||
standaloneMode: res.standalone_mode,
|
standaloneMode: res.standalone_mode,
|
||||||
functionMode: res.function_mode,
|
functionMode: res.function_mode,
|
||||||
},
|
},
|
||||||
})
|
});
|
||||||
);
|
});
|
||||||
|
|
||||||
export default (state = initialState, action) => {
|
export default (state = initialState, action) => {
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user