|
|
|
@ -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 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|