mirror of https://github.com/zulip/zulip.git
Fix traceback loading the app with all streams muted.
(imported from commit 42190bdbba3d56e79d1d9e19b85d6bba0d0d747f)
This commit is contained in:
parent
45dd03bfc7
commit
0a1febacb3
|
@ -1329,7 +1329,7 @@ function main() {
|
|||
//
|
||||
// We fall back to the closest selected id, as the user may have removed
|
||||
// a stream from the home before already
|
||||
if (home_msg_list.selected_id() === -1) {
|
||||
if (home_msg_list.selected_id() === -1 && !home_msg_list.empty()) {
|
||||
home_msg_list.select_id(page_params.initial_pointer,
|
||||
{then_scroll: true, use_closest: true});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue