fixed issue of 'typeof' expression is compared to 'null' in Web UI

Merge branch 'develop'
pull/64/head
13621160019@163.com 2021-08-22 14:37:47 +08:00
commit f898a6fd83
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ const EnergyFlowDiagram = ({ setRedirect, setRedirectUrl, t }) => {
}
energyFlowDiagramData.links.forEach(function (item) {
if(typeof item.value === 'null') {
if(item.value === null) {
item.value = 0;
}
let sourceColor = null;