Skip to content

Commit

Permalink
fix(admin-ui): resolve all bugs displayed for admin-ui #308
Browse files Browse the repository at this point in the history
  • Loading branch information
syntrydy committed Nov 22, 2021
1 parent 57708d1 commit 5ff03e6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module.exports = {
'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 0 }],
'prefer-const': 'error',
'no-unused-vars': 'off',
"default-param-last": "off",
//"no-use-before-define": "error",
'react/jsx-uses-react': 'error',
'react/jsx-uses-vars': 'error',
Expand Down
3 changes: 0 additions & 3 deletions app/redux/reducers/AuthReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ import {
GET_USER_LOCATION_RESPONSE,
} from '../actions/types'
import reducerRegistry from './ReducerRegistry'
/**
* initial auth user
*/
const INIT_STATE = {
isAuthenticated: false,
userinfo: null,
Expand Down
12 changes: 0 additions & 12 deletions app/redux/reducers/InitReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ const reducerName = 'initReducer'
export default function initReducer(state = INIT_STATE, action) {
switch (action.type) {
case GET_SCRIPTS_FOR_STAT:
return {
...state,
}
case GET_SCRIPTS_FOR_STAT_RESPONSE:
if (action.payload.data) {
return {
Expand All @@ -33,9 +30,6 @@ export default function initReducer(state = INIT_STATE, action) {
}

case GET_CLIENTS_FOR_STAT:
return {
...state,
}
case GET_CLIENTS_FOR_STAT_RESPONSE:
if (action.payload.data) {
return {
Expand All @@ -45,9 +39,6 @@ export default function initReducer(state = INIT_STATE, action) {
}

case GET_ATTRIBUTES_FOR_STAT:
return {
...state,
}
case GET_ATTRIBUTES_FOR_STAT_RESPONSE:
if (action.payload.data) {
return {
Expand All @@ -57,9 +48,6 @@ export default function initReducer(state = INIT_STATE, action) {
}

case GET_SCOPES_FOR_STAT:
return {
...state,
}
case GET_SCOPES_FOR_STAT_RESPONSE:
if (action.payload.data) {
return {
Expand Down

0 comments on commit 5ff03e6

Please sign in to comment.