js: Use .empty() instead of .html("").

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-08-17 15:30:47 -07:00
committed by Tim Abbott
parent de663184f3
commit e0b593f67e
15 changed files with 17 additions and 34 deletions

View File

@@ -31,7 +31,7 @@ export function reload() {
}
const $user_groups_section = $("#user-groups").expectOne();
$user_groups_section.html("");
$user_groups_section.empty();
populate_user_groups();
}