File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
frontend/src/app/questions Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ export class QuestionDialogComponent implements OnInit {
130
130
this . questionUpdate . emit ( response . data ) ;
131
131
} ,
132
132
error : ( error : HttpErrorResponse ) => {
133
- this . errorReceive . emit ( error . error . message ) ;
133
+ this . errorReceive . emit ( error . message ) ;
134
134
} ,
135
135
complete : ( ) => {
136
136
this . question = { } as Question ;
@@ -145,7 +145,7 @@ export class QuestionDialogComponent implements OnInit {
145
145
this . questionAdd . emit ( response . data ) ;
146
146
} ,
147
147
error : ( error : HttpErrorResponse ) => {
148
- this . errorReceive . emit ( 'Failed to add new question. ' + error . error . message ) ;
148
+ this . errorReceive . emit ( 'Failed to add new question. ' + error . message ) ;
149
149
} ,
150
150
complete : ( ) => {
151
151
this . question = { } as Question ;
@@ -182,7 +182,7 @@ export class QuestionDialogComponent implements OnInit {
182
182
} ,
183
183
error : ( error : HttpErrorResponse ) => {
184
184
this . topics = [ ] ;
185
- this . errorReceive . emit ( 'Failed to load topics. ' + error . error . message ) ;
185
+ this . errorReceive . emit ( 'Failed to load topics. ' + error . message ) ;
186
186
} ,
187
187
} ) ;
188
188
}
Original file line number Diff line number Diff line change @@ -127,3 +127,4 @@ <h3>{{ clickedOnQuestion?.title }}</h3>
127
127
</ div >
128
128
</ p-sidebar >
129
129
</ div >
130
+ < p-toast position ="bottom-right " [breakpoints] ="{ '920px': { width: '90%' } } " />
You can’t perform that action at this time.
0 commit comments