Fixed Nan value broken maps network graph. (#10408)

Error message:
Uncaught TypeError: Cannot read property 'indexOf' of null
at Object.e.overrideOpacity (vis.js:1085)
This commit is contained in:
Shao Yu-Lung (Allen)
2019-07-05 14:50:56 +08:00
committed by PipoCanaja
parent 20b3211e7e
commit bd1204006a

View File

@@ -259,7 +259,9 @@ foreach ($list as $items) {
if ($link_used > 100) {
$link_used = 100;
}
if (is_nan($link_used)) {
$link_used = 0;
}
$link_style = [
'color' => [
'border' => Config::get("network_map_legend.$link_used"),