Commit 0cc8f878 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team

model.js: getSoftVersion(), works if this.samples.producer is not defined

parent 5b71c063
......@@ -721,7 +721,7 @@ Model.prototype = {
//return the soft version if available
//return "multiple" if different soft have been used for different samples
getSoftVersion: function() {
if (this.samples.producer == "undefined"){
if (typeof this.samples.producer == "undefined"){
return "unknow"
}else{
var soft_version = this.samples.producer[this.samples.order[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