Skip to content

Commit

Permalink
Set error to null when successfully retreiving data
Browse files Browse the repository at this point in the history
  • Loading branch information
lilbitner committed Mar 28, 2023
1 parent 0fd8b3a commit 94d1dcc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const AnalyticsApp = (props: Props) => {
try {
const reportData = await api.runReports(reportRequestParams);
setRunReportResponse(reportData);
setError(undefined);
} catch (e) {
setError(e as Error);
}
Expand Down

0 comments on commit 94d1dcc

Please sign in to comment.