Commit 576475ef authored by Riri Novita's avatar Riri Novita

Issue OI

parent e3327301
...@@ -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