From 9d1423b5aa3437cd13da9e166dc6840007887fa1 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 16 Mar 2023 12:27:27 +0000 Subject: [PATCH] DEV: Drop impossible conditional from admin-logs-staff-action-logs (#20687) `Object.keys(filters)` will never return 0 --- .../admin/addon/routes/admin-logs-staff-action-logs.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/admin/addon/routes/admin-logs-staff-action-logs.js b/app/assets/javascripts/admin/addon/routes/admin-logs-staff-action-logs.js index 279e1177fde..395ce34b179 100644 --- a/app/assets/javascripts/admin/addon/routes/admin-logs-staff-action-logs.js +++ b/app/assets/javascripts/admin/addon/routes/admin-logs-staff-action-logs.js @@ -36,12 +36,8 @@ export default class AdminLogsStaffActionLogsRoute extends DiscourseRoute { @action onFiltersChange(filters) { - if (filters && Object.keys(filters) === 0) { - this.transitionTo("adminLogs.staffActionLogs"); - } else { - this.transitionTo("adminLogs.staffActionLogs", { - queryParams: { filters }, - }); - } + this.transitionTo("adminLogs.staffActionLogs", { + queryParams: { filters }, + }); } }