Skip to content

Commit 827cac7

Browse files
committed
update the if check for checkIfPoll function
1 parent be6d649 commit 827cac7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/js/modules/projections/services/AtomEventsReader.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ define(['./_module'], function (app) {
4040
}
4141

4242
function checkIfPoll (previous, headOfStream, onContinuePollCallback, doNotPollCallback) {
43+
44+
if (typeof result.previous.uri === "undefined") {
45+
return;
46+
}
4347
if(!headOfStream){
4448
doNotPollCallback();
4549
return;

0 commit comments

Comments
 (0)