Browse Source

Merge pull request 'use menu id' (#73) from dev-wahyu into staging

Reviewed-on: ibnu/generic-ospro-frontend#73
pull/1/head
farhantock 9 months ago
parent
commit
9851a7b2a9
  1. 10
      src/views/Master/MasterRoles/DialogMenuRoles.js

10
src/views/Master/MasterRoles/DialogMenuRoles.js

@ -253,27 +253,27 @@ export default class DialogMenuRoles extends Component {
} }
getIndexDataMenu = (id) => { getIndexDataMenu = (id) => {
let index = this.state.menu.findIndex(obj => obj.id === id); let index = this.state.menu.findIndex(obj => obj.menu_id === id);
return index return index
} }
getIndexDataCreate = (id) => { getIndexDataCreate = (id) => {
let index = this.state.stateCreate.findIndex(obj => obj.id === id); let index = this.state.stateCreate.findIndex(obj => obj.menu_id === id);
return index return index
} }
getIndexDataDelete = (id) => { getIndexDataDelete = (id) => {
let index = this.state.stateDelete.findIndex(obj => obj.id === id); let index = this.state.stateDelete.findIndex(obj => obj.menu_id === id);
return index return index
} }
getIndexDataRead = (id) => { getIndexDataRead = (id) => {
let index = this.state.stateRead.findIndex(obj => obj.id === id); let index = this.state.stateRead.findIndex(obj => obj.menu_id === id);
return index return index
} }
getIndexDataUpdate = (id) => { getIndexDataUpdate = (id) => {
let index = this.state.stateUpdate.findIndex(obj => obj.id === id); let index = this.state.stateUpdate.findIndex(obj => obj.menu_id === id);
return index return index
} }

Loading…
Cancel
Save