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) => {
let index = this.state.menu.findIndex(obj => obj.id === id);
let index = this.state.menu.findIndex(obj => obj.menu_id === id);
return index
}
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
}
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
}
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
}
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
}

Loading…
Cancel
Save