Commit d3ffc8a4 authored by Deni Rinaldi's avatar Deni Rinaldi

kpis

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