Skip to content

Commit

Permalink
wrap non error in a try/catch (elastic#26898)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattapperson committed Dec 14, 2018
1 parent 207a1c1 commit 50971af
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions x-pack/plugins/beats_management/public/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ export class AppRouter extends Component<RouterProps, RouterState> {

public async componentWillMount() {
if (this.state.loadingStatus === 'loading') {
await this.props.beatsContainer.reload();
await this.props.tagsContainer.reload();
try {
await this.props.beatsContainer.reload();
await this.props.tagsContainer.reload();
} catch (e) {
// TODO in a furture version we will better manage this "error" in a returned arg
}

const countOfEverything =
this.props.beatsContainer.state.list.length + this.props.tagsContainer.state.list.length;
Expand Down

0 comments on commit 50971af

Please sign in to comment.