Commit faabd4d1 authored by syadziy's avatar syadziy

issue CAT

parent 69b632ad
...@@ -1310,6 +1310,7 @@ export default class CorporateAnnualTarget extends Component { ...@@ -1310,6 +1310,7 @@ export default class CorporateAnnualTarget extends Component {
// // // console.log(total) // // // console.log(total)
total = R.equals(total, NaN) ? "0.0" : total total = R.equals(total, NaN) ? "0.0" : total
console.log(total);
// if (dataTable2[tableMeta.rowIndex][6] == "ROIC") { // if (dataTable2[tableMeta.rowIndex][6] == "ROIC") {
// if (dataTable2[tableMeta.rowIndex][tableMeta.columnIndex].value == undefined) { // if (dataTable2[tableMeta.rowIndex][tableMeta.columnIndex].value == undefined) {
// dataTable2[tableMeta.rowIndex][tableMeta.columnIndex] = "0" // dataTable2[tableMeta.rowIndex][tableMeta.columnIndex] = "0"
...@@ -1318,9 +1319,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -1318,9 +1319,9 @@ export default class CorporateAnnualTarget extends Component {
// } // }
// } else { // } else {
if (dataTable2[tableMeta.rowIndex][tableMeta.columnIndex].value == undefined) { if (dataTable2[tableMeta.rowIndex][tableMeta.columnIndex].value == undefined) {
dataTable2[tableMeta.rowIndex][tableMeta.columnIndex] = total.toFixed(1) dataTable2[tableMeta.rowIndex][tableMeta.columnIndex] = Number(total).toFixed(1)
} else { } else {
dataTable2[tableMeta.rowIndex][tableMeta.columnIndex].value = total.toFixed(1) dataTable2[tableMeta.rowIndex][tableMeta.columnIndex].value = Number(total).toFixed(1)
} }
// } // }
......
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