Commit a88981d1 authored by d.arizona's avatar d.arizona

yee

parent 170864fe
...@@ -182,14 +182,7 @@ export default class EditUser extends Component { ...@@ -182,14 +182,7 @@ export default class EditUser extends Component {
getPerusahaan() { getPerusahaan() {
api.create().getPerusahaanHierarki().then((response) => { api.create().getPerusahaanHierarki().then((response) => {
if (response.data.status === 'success') { if (response.data.status === 'success') {
let listCompany = response.data.data.map((item,index) => { this.setState({ listCompany: response.data.data })
return {
...item,
index,
collapse: false
}
})
this.setState({ listCompany }, () => console.log(listCompany))
// console.log(response.data.data) // console.log(response.data.data)
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment