Browse Source

fix(crons): Correct monitor issue details (#49228)

There was a typo here -.- and the join was acting on the monitor
environment objects and not the monitor names.
David Wang 1 year ago
parent
commit
32c32ab701
1 changed files with 3 additions and 1 deletions
  1. 3 1
      static/app/views/monitors/components/monitorIssues.tsx

+ 3 - 1
static/app/views/monitors/components/monitorIssues.tsx

@@ -45,7 +45,9 @@ function MonitorIssues({orgId, monitor, monitorEnvs}: Props) {
       orgId={orgId}
       endpointPath={`/organizations/${orgId}/issues/`}
       queryParams={{
-        query: `monitor.slug:"${monitor.slug}" enviroment:[${monitorEnvs.join(',')}]`,
+        query: `monitor.slug:"${monitor.slug}" environment:[${monitorEnvs
+          .map(e => e.name)
+          .join(',')}]`,
         project: monitor.project.id,
         limit: 5,
         ...timeProps,