mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
committed by
PipoCanaja
parent
20b3211e7e
commit
bd1204006a
@@ -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"),
|
||||
|
Reference in New Issue
Block a user