Skip to content

Commit

Permalink
fix: DataPanel isFirstLoad state fix
Browse files Browse the repository at this point in the history
  • Loading branch information
torkelo committed Oct 22, 2018
1 parent 8be4490 commit 16a2b20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/app/features/dashboard/dashgrid/DataPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,11 @@ export class DataPanel extends Component<Props, State> {
this.setState({
loading: LoadingState.Done,
response: resp,
isFirstLoad: false,
});
} catch (err) {
console.log('Loading error', err);
this.setState({ loading: LoadingState.Error });
this.setState({ loading: LoadingState.Error, isFirstLoad: false });
}
};

Expand Down

0 comments on commit 16a2b20

Please sign in to comment.