Skip to content

Commit

Permalink
suppress unwanted error notification (#456)
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeepsingh Siglani <[email protected]>

cr: https://code.amazon.com/reviews/CR-87076318
  • Loading branch information
amsiglan authored and sbcd90 committed Mar 10, 2023
1 parent 380e7c9 commit 952d8a5
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 952d8a5

Please sign in to comment.