Skip to content

Commit bdb5db4

Browse files
committed
Fix bug introduced with frame validation. closes kriskbx#57
1 parent dbb55a8 commit bdb5db4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/frame.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class frame {
6363
if(!moment(this._start).isValid())
6464
throw `Error: Start date is not in a valid ISO date format!`;
6565

66-
if(!moment(this._stop).isValid())
66+
if(this._stop && !moment(this._stop).isValid())
6767
throw `Error: Stop date is not in a valid ISO date format!`;
6868

6969
moment.suppressDeprecationWarnings = false;

0 commit comments

Comments
 (0)