Skip to content

Commit 0662988

Browse files
Merge pull request #139 from sushobhit-lt/length-fix
fix undefined length issue
2 parents 1dd550a + f5a247d commit 0662988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/processSnapshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default class Queue {
7272
}
7373

7474
isEmpty(): boolean {
75-
return this.snapshots.length ? false : true;
75+
return this.snapshots && this.snapshots.length ? false : true;
7676
}
7777
}
7878

0 commit comments

Comments
 (0)