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]>
  • Loading branch information
amsiglan authored Feb 22, 2023
1 parent 549598d commit 6609322
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 6609322

Please sign in to comment.