Commit 2c7507ba authored by faisalhamdi's avatar faisalhamdi

fix bugs ro cat!

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