summaryrefslogtreecommitdiff
path: root/web/source/settings/views/moderation/accounts/search/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/source/settings/views/moderation/accounts/search/index.tsx')
-rw-r--r--web/source/settings/views/moderation/accounts/search/index.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/source/settings/views/moderation/accounts/search/index.tsx b/web/source/settings/views/moderation/accounts/search/index.tsx
index 16e89ce43..f37e22a66 100644
--- a/web/source/settings/views/moderation/accounts/search/index.tsx
+++ b/web/source/settings/views/moderation/accounts/search/index.tsx
@@ -83,7 +83,7 @@ export function AccountSearchForm() {
}
// Location to return to when user clicks "back" on the account detail view.
- const backLocation = location + (urlQueryParams ? `?${urlQueryParams}` : "");
+ const backLocation = location + (urlQueryParams.size > 0 ? `?${urlQueryParams}` : "");
// Function to map an item to a list entry.
function itemToEntry(account: AdminAccount): ReactNode {