mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
get_{next,prev}_visible: Handle undefined argument
(imported from commit 07956fb7595e8c39fd052aaf0a16df4c3e574f8d)
This commit is contained in:
parent
bffae8d550
commit
ee75f7ae8d
@ -316,10 +316,14 @@ function get_all_zephyr_rows() {
|
||||
}
|
||||
|
||||
function get_next_visible(zephyr_row) {
|
||||
if (zephyr_row === undefined)
|
||||
return [];
|
||||
return zephyr_row.nextAll('.zephyr_row:first');
|
||||
}
|
||||
|
||||
function get_prev_visible(zephyr_row) {
|
||||
if (zephyr_row === undefined)
|
||||
return [];
|
||||
return zephyr_row.prevAll('.zephyr_row:first');
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user