Skip to content

Commit 84cad99

Browse files
committed
Merge pull request #57 from EventStore/check-if-stream-exists
Check if the stream ID exists before we add it to the list of streams. This helps resolve the situation where a recently created stream has been scavenged and deleted.
2 parents 5df3f87 + 180d17f commit 84cad99

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/js/modules/streams/controllers/StreamsListCtrl.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ define(['./_module'], function (app) {
1010
var filtered = {}, i = 0, length = entries.length, item, result = [];
1111

1212
for(; i<length; i++) {
13-
item = entries[i];
14-
filtered[item.streamId] = true;
13+
if(entries[i].streamId){
14+
item = entries[i];
15+
filtered[item.streamId] = true;
16+
}
1517
}
1618

1719
for (item in filtered) {

0 commit comments

Comments
 (0)