Compare commits

...

2 Commits

  1. 2
      api/app/lib/controllers/monitor/index.js

2
api/app/lib/controllers/monitor/index.js

@ -187,7 +187,7 @@ async function getMonitorData(ctx) {
factorNames = item.Items.split(',')
c = item.ItemUnits.split(',')
factorNames.map((child, index) => {
items[factorNames[index]] = { name: factors[index], unit: c[index] }
items[factorNames[index]?factorNames[index]:factors[index]] = { name: factors[index], unit: c[index] }
})
})
}

Loading…
Cancel
Save