Skip to content
This repository was archived by the owner on Oct 14, 2019. It is now read-only.

Commit 7dd16ae

Browse files
author
Your Name
committed
Angular and Firebase App
1 parent 547c42b commit 7dd16ae

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/app/lesson-detail/lesson-detail.component.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,7 @@ export class LessonDetailComponent implements OnInit {
6565

6666

6767
requestLessonDeletion() {
68-
this.lessonsService.requestLessonDeletion(this.lesson.$key, this.lesson.courseId)
69-
.subscribe(
70-
() => alert('Lesson deleted'),
71-
console.error
72-
);
73-
68+
this.lessonsService.requestLessonDeletion(this.lesson.$key, this.lesson.courseId);
7469
}
7570

7671

0 commit comments

Comments
 (0)