From 9672bad8ac3222ce45def78a44d5760fe6e7eaa8 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Tue, 10 Jan 2023 16:54:54 -0800 Subject: [PATCH] suppressed unnecessary error toast (#338) (#341) Signed-off-by: Amardeepsingh Siglani Signed-off-by: Amardeepsingh Siglani (cherry picked from commit 7ab04ba82548ec7253b0f7b89f24a8b19516615c) Co-authored-by: Amardeepsingh Siglani Signed-off-by: AWSHurneyt --- 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',