Commit b3a71f5a authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

js/model.js: works even when timestamps are not defined

Fix 9aa52e68.
Thanks to the functional Watir tests.
parent ca3bfe92
......@@ -1260,7 +1260,7 @@ Model.prototype = {
delta_max = 0
for (var i = 0; i < this.samples.order.length; i++)
if (this.samples.timestamp[i] == 'None')
if ((typeof this.samples.timestamp == 'undefined') || (this.samples.timestamp[i] == 'None'))
return { 'min': -1, 'max': -1 }
try
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment