mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
Don't throw an exception if we get an undefined stream
(imported from commit b6bbaf1fa14bec5fc43016f81e15caa32a9fb948)
This commit is contained in:
parent
9bfec549af
commit
3b7ddd72cf
@ -97,6 +97,10 @@ function colorize_tab_bar() {
|
||||
var stream_tab = $('#tab_list .stream');
|
||||
if (stream_tab.length > 0) {
|
||||
var stream_name = stream_tab.data('name');
|
||||
if (stream_name === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
var stream_color = subs.get_color(stream_name);
|
||||
|
||||
if (!stream_tab.hasClass('active')) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user