Просмотр исходного кода

fix(crons): Don't show processing errors when none exist (#71566)

My bad on this one, the api will always return atleast an `[]`, so we
need to verify that there are items inside the array before showing here

fixes: https://github.com/getsentry/sentry/issues/71499
David Wang 9 месяцев назад
Родитель
Сommit
fb68f763b2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      static/app/views/monitors/overview.tsx

+ 1 - 1
static/app/views/monitors/overview.tsx

@@ -154,7 +154,7 @@ export default function Monitors() {
                 onSearch={handleSearch}
               />
             </Filters>
-            {processingErrors && (
+            {!!processingErrors?.length && (
               <MonitorProcessingErrors checkinErrors={processingErrors}>
                 {t(
                   'Errors were encountered while ingesting check-ins for the selected projects'