mirror of https://github.com/zulip/zulip.git
ui_init: Fix misconverted conditional.
f630272b4c
incorrectly considered the
case that message_lists.current was itself undefined.
This commit is contained in:
parent
f0cf4dad04
commit
e6109ba192
|
@ -282,7 +282,7 @@ export function initialize_kitchen_sink_stuff() {
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on("message_selected.zulip", (event) => {
|
$(document).on("message_selected.zulip", (event) => {
|
||||||
if (message_lists.current !== undefined && message_lists.current !== event.msg_list) {
|
if (message_lists.current === undefined || message_lists.current !== event.msg_list) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue