Skip to content

Commit

Permalink
fix: implemented the error code for assigned categories (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkrulltott authored Jan 22, 2020
1 parent e8a3170 commit 7b9f52b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/app/src/components/Visualization/Visualization.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ export class Visualization extends Component {
onError = response => {
let error
if (response) {
if (
response.message ===
'Assigned categories can only be specified together with data elements, not indicators or reporting rates'
) {
if (response.errorCode === 'E7114') {
error = new AssignedCategoriesError()
} else {
error = response
Expand Down

0 comments on commit 7b9f52b

Please sign in to comment.