From 7ab04ba82548ec7253b0f7b89f24a8b19516615c Mon Sep 17 00:00:00 2001 From: Amardeepsingh Siglani Date: Wed, 11 Jan 2023 06:14:39 +0530 Subject: [PATCH] suppressed unnecessary error toast (#338) Signed-off-by: Amardeepsingh Siglani Signed-off-by: Amardeepsingh Siglani --- public/pages/Overview/models/OverviewViewModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/pages/Overview/models/OverviewViewModel.ts b/public/pages/Overview/models/OverviewViewModel.ts index c8378a8da..3a9979405 100644 --- a/public/pages/Overview/models/OverviewViewModel.ts +++ b/public/pages/Overview/models/OverviewViewModel.ts @@ -78,7 +78,7 @@ export class OverviewViewModelActor { } if (customResponse.ok) { customResponse.response.hits.hits.forEach((hit) => (ruleById[hit._id] = hit._source)); - } else { + } else if (!customResponse.error?.includes('index doesnt exist')) { errorNotificationToast( this.notifications, 'retrieve',