Skip to content

Commit

Permalink
handle deleted entries
Browse files Browse the repository at this point in the history
  • Loading branch information
dspinoz committed May 15, 2016
1 parent 0d43038 commit a64fce1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion calendarview/index3.html
Expand Up @@ -677,8 +677,15 @@ <h3>Interactions</h3>
var data = [];
csv.forEach(function(d) {

if (!d._date)
if (!d._date) {
console.log('Invalid date', d._date, d);
return;
}

if (d._orig.deleted && d._orig.deleted != 0) {
console.log('Entry deleted', d);
return;
}

if (d._date && d._date instanceof Date && !isNaN(d._date.valueOf()))
{
Expand Down

0 comments on commit a64fce1

Please sign in to comment.