js: Clean up user_id type confusion.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2020-01-16 14:40:20 -05:00
committed by Tim Abbott
parent e6178f2abd
commit 1a07f7b158
8 changed files with 21 additions and 24 deletions

View File

@@ -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);