Commit 7099ac77 authored by Riri Novita's avatar Riri Novita

Merge branch 'ENV-PROD' into 'ENV-DEPLOYMENT-PROD'

Issue OI

See merge request !2340
parents f6d03117 576475ef
...@@ -658,7 +658,7 @@ export default class OperatingIndicatorMR extends Component { ...@@ -658,7 +658,7 @@ export default class OperatingIndicatorMR extends Component {
let total = 0 let total = 0
dataTable2.map((item, index) => { dataTable2.map((item, index) => {
if (data.rowData[1] === item[2]) { if (data.rowData[1] === item[2]) {
let itemVal = item[data.columnIndex + type].value !== undefined ? Number(item[data.columnIndex + type].value) : Number(item[data.columnIndex + type]) let itemVal = item[data.columnIndex + type]?.value !== undefined ? Number(item[data.columnIndex + type]?.value) : Number(item[data.columnIndex + type])
total = item[data.columnIndex + type] === undefined ? Number(total) + 0 : Number(total) + itemVal total = item[data.columnIndex + type] === undefined ? Number(total) + 0 : Number(total) + itemVal
} }
}) })
......
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