Skip to content
Snippets Groups Projects
Commit cce10677 authored by GustafWallstrom's avatar GustafWallstrom
Browse files

Merge branch 'dev'

parents daadc35c ed5ba7e6
No related branches found
No related tags found
No related merge requests found
......@@ -53,11 +53,11 @@ export class AddPostComponent {
courseExists(){
this.addPostService.findCourse(this.post.title).subscribe(result => {
if(result['data']){
this.isThere = true;
this.coursePar = result['data'].par;
} else {
if(!result['data']){
this.isThere = false;
} else {
this.isThere = true;
this.coursePar = result['data'].par;
}
}, error => {
console.log('error is ', 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