diff --git a/public/pages/Detectors/containers/Detectors/Detectors.tsx b/public/pages/Detectors/containers/Detectors/Detectors.tsx index b2dd73265..e31526703 100644 --- a/public/pages/Detectors/containers/Detectors/Detectors.tsx +++ b/public/pages/Detectors/containers/Detectors/Detectors.tsx @@ -88,7 +88,7 @@ export default class Detectors extends Component }; }); this.setState({ detectorHits: detectors }); - } else { + } else if (!res.error.includes('no such index')) { errorNotificationToast(notifications, 'retrieve', 'detectors', res.error); } } catch (e) { diff --git a/public/pages/Overview/models/OverviewViewModel.ts b/public/pages/Overview/models/OverviewViewModel.ts index 3a9979405..429b21b74 100644 --- a/public/pages/Overview/models/OverviewViewModel.ts +++ b/public/pages/Overview/models/OverviewViewModel.ts @@ -39,7 +39,7 @@ export class OverviewViewModelActor { const res = await this.services?.detectorsService.getDetectors(); if (res?.ok) { this.overviewViewModel.detectors = res.response.hits.hits; - } else { + } else if (!res?.error.includes('no such index')) { errorNotificationToast(this.notifications, 'retrieve', 'detectors', res.error); } }