(js) Improve reset of a reccurent component

This commit is contained in:
Francis Lachapelle
2016-11-03 11:48:48 -04:00
parent 57a4286cd5
commit 21dd03eb81
@@ -579,7 +579,8 @@
this.repeat.end = 'count';
else if (this.repeat.until) {
this.repeat.end = 'until';
this.repeat.until = Component.$parseDate(this.repeat.until, { no_time: true });
if (angular.isString(this.repeat.until))
this.repeat.until = Component.$parseDate(this.repeat.until, { no_time: true });
}
else
this.repeat.end = 'never';