DEV: Drop impossible conditional from admin-logs-staff-action-logs (#20687)
`Object.keys(filters)` will never return 0
This commit is contained in:
parent
5d46a16ca5
commit
9d1423b5aa
|
@ -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 },
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue