Commit 387a6e47 authored by Faisal Hamdi's avatar Faisal Hamdi

Merge branch 'faisal' into 'master'

fix bugs ro cat!

See merge request !1439
parents bc91a125 d94883db
......@@ -530,7 +530,7 @@ export default class CorporateAnnualTargetRO extends Component {
item.formula,
item.level,
item.item_report,
item.weight,
Number(String(item.weight).substr(0,String(item.weight).length-1)),
item.uom,
item.kpi == "" || item.kpi == null ? null : { value: item.kpi },
item.max_ach == "" || item.max_ach == null ? null : { value: titleCase(item.max_ach) },
......@@ -558,7 +558,7 @@ export default class CorporateAnnualTargetRO extends Component {
console.log(dataTable)
this.setState({ dataTable, dataLoaded: true, loading: false, buttonError: false, editable: true }, () => {
this.state.dataTable.map(item => {
if (item[26].length > 0) {
if (item[27].length > 0) {
console.log('masuk')
this.setState({ buttonError: true, errorPreview: true, editable: true })
}
......
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