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

Commit df4f091

Browse files
author
Your Name
committed
Angular 2 Firebase app
1 parent 8c4478e commit df4f091

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export class LessonsService {
4848
limitToFirst: 2
4949
}
5050
})
51+
.filter(results => results && results.length > 0)
5152
.map(results => results[1].$key)
5253
.switchMap(lessonId => this.db.object(`lessons/${lessonId}`))
5354
.map(Lesson.fromJson);

0 commit comments

Comments
 (0)