Skip to content

Commit

Permalink
Add error helper to main component
Browse files Browse the repository at this point in the history
  • Loading branch information
saiat3 committed Aug 20, 2019
1 parent 65a7976 commit 1002a1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/templates/main.component.template
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

<script>
import {{serviceName}} from './{{serviceName}}';
import ErrorHelper from './../../services/errorHelper';
import Settings from './../../services/settings';

import {library} from '@fortawesome/fontawesome-svg-core'
Expand Down Expand Up @@ -48,7 +49,7 @@
this.{{listVariableName}} = response.body;
this.initTableData();
}, error => {
//TODO show error
ErrorHelper.handleErrors(this.formErrors, error.body);
})
},
update(item) {
Expand Down

0 comments on commit 1002a1d

Please sign in to comment.