fix timeline

This commit is contained in:
yuri
2017-02-01 11:14:18 +02:00
parent 6ddda814c0
commit 8398cc4364
@@ -332,6 +332,8 @@ Espo.define('crm:views/calendar/timeline', ['view', 'lib!vis'], function (Dep, V
event.start = event.end.clone();
}
}
} else {
if (!event.end || !event.start) return;
}
this.fillColor(event);
@@ -380,6 +382,7 @@ Espo.define('crm:views/calendar/timeline', ['view', 'lib!vis'], function (Dep, V
var resultList = [];
list.forEach(function (o) {
var event = this.convertEvent(o);
if (!event) return;
resultList.push(event);
}, this);
return resultList;