Commit bd70bae7 authored by Deni Rinaldi's avatar Deni Rinaldi

Merge branch 'deni-' into 'master'

kpis

See merge request !1229
parents 31a33676 d3ffc8a4
......@@ -95,8 +95,8 @@ export default class DashboardCAT extends Component {
company_id: item.company_id,
company_name: item.company_name,
}
})
})
let arrayBaru = []
this.state.userCompany.map((item, index) => {
let indexID = companyData.findIndex((val) => val.company_id == item)
......@@ -106,7 +106,7 @@ export default class DashboardCAT extends Component {
})
let defaultProps = {
options: arrayBaru,
options: arrayBaru.sort((a, b) => a.company_name.localeCompare(b.company_name)),
getOptionLabel: (option) => titleCase(option.company_name),
};
let index = arrayBaru.findIndex((val) => val.company_id == comID)
......
This diff is collapsed.
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