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

Commit 6d15231

Browse files
committed
Angular 2 and Firebase - Build an Application
1 parent 0147d76 commit 6d15231

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/shared/model/lessons.service.ts

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export class LessonsService {
6363
limitToLast: 2
6464
}
6565
})
66+
.filter(results => results && results.length > 0)
6667
.map(results => results[0].$key)
6768
.switchMap(lessonId => this.db.object(`lessons/${lessonId}`))
6869
.map(Lesson.fromJson);

0 commit comments

Comments
 (0)