Skip to content

Commit

Permalink
fix(admin-ui): fix api change for scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mjatin-dev committed Oct 7, 2022
1 parent fbbf60a commit 8678980
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin-ui/app/redux/api/InitApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default class InitApi {

getScripts = () => {
return new Promise((resolve, reject) => {
this.api.getConfigScripts((error, data) => {
this.api.getConfigScripts({},(error, data) => {
handleResponse(error, reject, resolve, data)
})
})
Expand Down
2 changes: 1 addition & 1 deletion admin-ui/app/redux/reducers/InitReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function initReducer(state = INIT_STATE, action) {
if (action.payload.data) {
return {
...state,
scripts: action.payload.data,
scripts: action.payload.data.entries,
}
} else {
return handleDefault()
Expand Down

0 comments on commit 8678980

Please sign in to comment.