Skip to content

Commit

Permalink
Update README.md (#3465)
Browse files Browse the repository at this point in the history
Type cast collectionData as it was producing an error without it
  • Loading branch information
estrellajm committed May 14, 2024
1 parent bd18c61 commit 2b0ce92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class AppComponent {

constructor() {
const itemCollection = collection(this.firestore, 'items');
this.item$ = collectionData(itemCollection);
this.item$ = collectionData(itemCollection) as Observable<Item[]>;
}
}
```
Expand Down

0 comments on commit 2b0ce92

Please sign in to comment.