mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
js: Clean up user_id type confusion.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
e6178f2abd
commit
1a07f7b158
@@ -288,8 +288,7 @@ exports.show_new_stream_modal = function () {
|
||||
|
||||
$('#user-checkboxes label.checkbox').each(function () {
|
||||
const user_elem = $(this);
|
||||
const str_user_id = user_elem.attr('data-user-id');
|
||||
const user_id = parseInt(str_user_id, 10);
|
||||
const user_id = parseInt(user_elem.attr('data-user-id'), 10);
|
||||
|
||||
if (subscriber_ids.has(user_id)) {
|
||||
user_elem.find('input').prop('checked', checked);
|
||||
|
||||
Reference in New Issue
Block a user