We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11b36ad commit aadc71aCopy full SHA for aadc71a
src/firestore/document/document.ts
@@ -89,9 +89,9 @@ export class AngularFirestoreDocument<T> {
89
/**
90
* Listen to unwrapped snapshot updates from the document.
91
*/
92
- valueChanges(): Observable<T> {
+ valueChanges(): Observable<T|null> {
93
return this.snapshotChanges().map(action => {
94
- return (action.payload.exists ? action.payload.data() : null) as T;
+ return action.payload.exists ? action.payload.data() as T : null;
95
});
96
}
97
0 commit comments