Commit 571bff50 authored by HERBERT Ryan's avatar HERBERT Ryan Committed by Vidjil Team

model.js fixed a bug where dates with value 'None' didn't display -/-

parent 62571cbb
......@@ -1461,7 +1461,7 @@ Model.prototype = {
break;
case "sampling_date":
if ((typeof this.samples.timestamp != 'undefined') && this.samples.timestamp[timeID])
if ((typeof this.samples.timestamp != 'undefined') && this.samples.timestamp[timeID] && this.samples.timestamp[timeID != "None"])
result = this.samples.timestamp[timeID].split(" ")[0]
break;
......
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