Skip to content

Commit

Permalink
suppress unwanted error notification (opensearch-project#456) (opense…
Browse files Browse the repository at this point in the history
…arch-project#457)

Signed-off-by: Amardeepsingh Siglani <[email protected]>
(cherry picked from commit 6609322)

Co-authored-by: Amardeepsingh Siglani <[email protected]>
Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
2 people authored and AWSHurneyt committed Oct 12, 2023
1 parent f8d38ef commit 9d81909
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/pages/Detectors/containers/Detectors/Detectors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default class Detectors extends Component<DetectorsProps, DetectorsState>
};
});
this.setState({ detectorHits: detectors });
} else {
} else if (!res.error.includes('no such index')) {
errorNotificationToast(notifications, 'retrieve', 'detectors', res.error);
}
} catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion public/pages/Overview/models/OverviewViewModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 9d81909

Please sign in to comment.