Skip to content
Snippets Groups Projects
Commit 404290ae authored by Tormod Nygård's avatar Tormod Nygård
Browse files

Issue: Missing catch (#4)

parent 2171c191
No related branches found
No related tags found
1 merge request!7Resolve "Frontend: Vise annonser"
......@@ -22,6 +22,8 @@ export class PostDetailsComponent implements OnInit {
// Gets Post with id from database
this.postService.getPost(id).then(post => {
this.post = post;
}).catch(error => {
console.log(error);
});
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment