Browse Source

use menu id

pull/1/head
wahyu 8 months ago
parent
commit
38ffdad5d1
  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