Commit 286a9e06 by zhaochengxiang

bug fix

parent 4ae3d89e
...@@ -141,8 +141,10 @@ const ModelTree = (props) => { ...@@ -141,8 +141,10 @@ const ModelTree = (props) => {
let total = 0 let total = 0
const item = data[key] const item = data[key]
for (const id in item) { for (const id in item) {
if (id === '4') {
total = total + item[id]??0 total = total + item[id]??0
} }
}
newData[key] = total newData[key] = total
} }
setServiceCountMapping(newData) setServiceCountMapping(newData)
......
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