diff --git a/frontend/src/app/questions/question-dialog.component.ts b/frontend/src/app/questions/question-dialog.component.ts index 3d11e7ee1e..43568dbe8e 100644 --- a/frontend/src/app/questions/question-dialog.component.ts +++ b/frontend/src/app/questions/question-dialog.component.ts @@ -130,7 +130,7 @@ export class QuestionDialogComponent implements OnInit { this.questionUpdate.emit(response.data); }, error: (error: HttpErrorResponse) => { - this.errorReceive.emit(error.error.message); + this.errorReceive.emit(error.message); }, complete: () => { this.question = {} as Question; @@ -145,7 +145,7 @@ export class QuestionDialogComponent implements OnInit { this.questionAdd.emit(response.data); }, error: (error: HttpErrorResponse) => { - this.errorReceive.emit('Failed to add new question. ' + error.error.message); + this.errorReceive.emit('Failed to add new question. ' + error.message); }, complete: () => { this.question = {} as Question; @@ -182,7 +182,7 @@ export class QuestionDialogComponent implements OnInit { }, error: (error: HttpErrorResponse) => { this.topics = []; - this.errorReceive.emit('Failed to load topics. ' + error.error.message); + this.errorReceive.emit('Failed to load topics. ' + error.message); }, }); } diff --git a/frontend/src/app/questions/questions.component.html b/frontend/src/app/questions/questions.component.html index bf897793d3..d3d7a54f6c 100644 --- a/frontend/src/app/questions/questions.component.html +++ b/frontend/src/app/questions/questions.component.html @@ -128,3 +128,4 @@