mirror of
https://github.com/zulip/zulip.git
synced 2025-11-20 14:38:46 +00:00
Fix admin.update_default_streams_table errors if tab not open.
It turns out that our logic for updating the default streams table crashed in the case where the administration tab was not open. Fixes: #1540.
This commit is contained in:
@@ -101,8 +101,10 @@ function get_non_default_streams_names(streams_data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
exports.update_default_streams_table = function () {
|
exports.update_default_streams_table = function () {
|
||||||
$("#admin_default_streams_table").expectOne().find("tr.default_stream_row").remove();
|
if ($('#administration').hasClass('active')) {
|
||||||
populate_default_streams(page_params.realm_default_streams);
|
$("#admin_default_streams_table").expectOne().find("tr.default_stream_row").remove();
|
||||||
|
populate_default_streams(page_params.realm_default_streams);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function make_stream_default(stream_name) {
|
function make_stream_default(stream_name) {
|
||||||
|
|||||||
Reference in New Issue
Block a user