Skip to content

Commit

Permalink
fix: show custom error when no data in use (DHIS2-16892)
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Feb 27, 2024
1 parent 42ea68d commit ae4e2de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Visualization/Visualization.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ export class UnconnectedVisualization extends Component {
case 'E7145':
error = new AnalyticsRequestError()
break
case 'E2200':
error = new NoDataError(this.props.visualization.type)
break
default:
error = response
}
Expand Down

0 comments on commit ae4e2de

Please sign in to comment.