Commit 9aa52e68 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team

model.js: if one date is None, do not time-scale the X axis of the graph

parent 4a302d03
......@@ -1259,6 +1259,10 @@ Model.prototype = {
delta_min = 9999
delta_max = 0
for (var i = 0; i < this.samples.order.length; i++)
if (this.samples.timestamp[i] == 'None')
return { 'min': -1, 'max': -1 }
try
{
previous_t = this.samples.timestamp[0]
......
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