Skip to content

Commit fd0cda0

Browse files
committed
fix empty node (undefined metrics) UI bug
1 parent 0761371 commit fd0cda0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

www/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,6 +1487,7 @@ <h3>Select date range for the CSV export</h3>
14871487
function metricsValues(metrics, ignorePin) {
14881488
if(ignorePin === undefined) ignorePin = false; //default param
14891489
var label = '';
1490+
if (!metrics) return label;
14901491
var metrics = Object.values(metrics).filter(function(m){ return (m.pin !=0 && m.pin !=undefined) || ignorePin }).sort((a, b) => (a.pin > b.pin) ? -1 : 1); //filter only pinned metrics, and sort them descending
14911492
for(var key in metrics)
14921493
{

0 commit comments

Comments
 (0)