Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Fix filtering users based on role.
Sahil Batra54595f80cccf
diff --git a/web/src/settings_users.ts b/web/src/settings_users.tsindex 55c8f5a6026..50276b2ed7f 100644--- a/web/src/settings_users.ts+++ b/web/src/settings_users.ts@@ -172,7 +172,6 @@ function add_value_to_filters(}function role_selected_handler(- this: HTMLElement,event: JQuery.ClickEvent,dropdown: tippy.Instance,widget: dropdown_widget.DropdownWidget,@@ -180,7 +179,7 @@ function role_selected_handler(event.preventDefault();event.stopPropagation();- const role_code = Number($(this).attr("data-unique-id"));+ const role_code = Number($(event.currentTarget).attr("data-unique-id"));if (widget.widget_name === active_section.dropdown_widget_name) {add_value_to_filters(active_section, "role_code", role_code);} else if (widget.widget_name === deactivated_section.dropdown_widget_name) {