Skip to content

Commit f5a247d

Browse files
committed
fix undefined length issue
1 parent 1dd550a commit f5a247d

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)