Răsfoiți Sursa

Fix Debugging Output for Teacher Deletion

Eldar Mukhtarov 9 luni în urmă
părinte
comite
b7ade3d85b
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      project/frontend-angular/src/app/services/teacher.ts

+ 1 - 1
project/frontend-angular/src/app/services/teacher.ts

@@ -25,7 +25,7 @@ export class TeacherService {
     const id = typeof teacher === 'number' ? teacher : teacher.id;
     const url = `${this.teachersUrl}/${id}`;
     return this.http.delete<Teacher>(url, httpOptions).pipe(
-      tap(_ => alert(`Successfully deleted teacher with id=${id}`)),
+      tap(_ => console.log(`TeacherService: deleted student id=${id}`)),
       catchError(this.handleError<Teacher>('deleteStudent', 'Error while deleting student'))
     );
   }