From ce474ee8cf1df880b374eb044d0ed59237c8b7e9 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 6 Dec 2019 12:01:46 -0800 Subject: [PATCH] bot settings: Fix sorting by owner. The previous configuration had not been properly updated for the conversion of how we transmit bot_owner to the frontend to be based on user IDs. --- static/js/settings_users.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/settings_users.js b/static/js/settings_users.js index 26f5aa9284..d18d5aca5a 100644 --- a/static/js/settings_users.js +++ b/static/js/settings_users.js @@ -187,10 +187,10 @@ function populate_users(realm_people_data) { bot_list.sort("alphabetic", "full_name"); bot_list.add_sort_function("bot_owner", function (a, b) { - if (!a.bot_owner) { return 1; } - if (!b.bot_owner) { return -1; } + if (!a.bot_owner_id) { return 1; } + if (!b.bot_owner_id) { return -1; } - return compare_a_b(a.bot_owner, b.bot_owner); + return compare_a_b(a.bot_owner_id, b.bot_owner_id); }); function get_rendered_last_activity(item) {