diff --git a/api/app/lib/controllers/monitor/index.js b/api/app/lib/controllers/monitor/index.js index e2196d4..8425426 100644 --- a/api/app/lib/controllers/monitor/index.js +++ b/api/app/lib/controllers/monitor/index.js @@ -148,7 +148,7 @@ async function getMonitorData(ctx) { factors = item.ItemNames.split(',') factorNames = item.Items.split(',') factors.map((child,index)=> { - items[factorNames[index]] = { name: child, unit: item.ItemUnits } + items[factorNames[index]] = { name: child, unit:factorNames[index] } }) }) }