Skip to content

Commit ffdc5fb

Browse files
committed
client: Do not try to scroll to non-existent entry
1 parent eb35239 commit ffdc5fb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

assets/js/selfoss-events-entries.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,11 @@ selfoss.events.entries = function() {
232232
// more)
233233
if (selfoss.events.entryId && selfoss.filter.fromId === undefined) {
234234
var entry = $('#entry' + selfoss.events.entryId);
235+
236+
if (!entry) {
237+
return;
238+
}
239+
235240
selfoss.ui.entryActivate(entry);
236241
// ensure scrolling to requested entry even if scrolling to article
237242
// header is disabled

0 commit comments

Comments
 (0)