Browse Source

fix(crons): Fix Monitor list paging (#52092)

The cursor needs to be a part of the query for paging to work.
Evan Purkhiser 1 year ago
parent
commit
acd73e6a7f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      static/app/views/monitors/utils.tsx

+ 2 - 2
static/app/views/monitors/utils.tsx

@@ -8,11 +8,11 @@ import {shouldUse24Hours} from 'sentry/utils/dates';
 import {CheckInStatus, MonitorConfig, ScheduleType} from 'sentry/views/monitors/types';
 
 export function makeMonitorListQueryKey(organization: Organization, location: Location) {
-  const {query, project, environment} = location.query;
+  const {query, project, environment, cursor} = location.query;
 
   return [
     `/organizations/${organization.slug}/monitors/`,
-    {query: {query, project, environment, includeNew: true, per_page: 20}},
+    {query: {cursor, query, project, environment, includeNew: true, per_page: 20}},
   ] as const;
 }