Skip to content

Commit b6cc323

Browse files
author
David Wang
authored
fix(crons): Reset cursor on search (#54349)
When using the search bar on the crons listing page, reset the cursor to show first page of results
1 parent f8b98c1 commit b6cc323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/app/views/monitors/overview.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default function Monitors() {
7272
const monitorListPageLinks = monitorListHeaders?.('Link');
7373

7474
const handleSearch = (query: string) => {
75-
const currentQuery = router.location.query ?? {};
75+
const currentQuery = {...(router.location.query ?? {}), cursor: undefined};
7676
router.push({
7777
pathname: location.pathname,
7878
query: normalizeDateTimeParams({...currentQuery, query}),

0 commit comments

Comments
 (0)