Browse Source

fix(crons): Set cacheTime:0 on edit monitor request (#50254)

Without this we'll return the previous value of the monitor form without
the alert rule, so we need to invalidate the cache
Evan Purkhiser 1 year ago
parent
commit
9c745aa191
1 changed files with 1 additions and 0 deletions
  1. 1 0
      static/app/views/monitors/edit.tsx

+ 1 - 0
static/app/views/monitors/edit.tsx

@@ -40,6 +40,7 @@ export default function EditMonitor() {
     data: monitor,
     refetch,
   } = useApiQuery<Monitor>(queryKey, {
+    cacheTime: 0,
     staleTime: 0,
   });