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