added tx property check
This commit is contained in:
parent
d91794fb1f
commit
58086dcabe
@ -293,7 +293,10 @@ Node.prototype.txDensityChart = function()
|
||||
{
|
||||
return txDensity = _.map(this.blocks, function(block)
|
||||
{
|
||||
return block.transactions.length;
|
||||
if(typeof block.transactions !== 'undefined')
|
||||
return block.transactions.length;
|
||||
|
||||
return 0;
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user