Skip to content

Commit bb43189

Browse files
xeeeveeejamesdaniels
authored andcommitted
docs(afs): Use correct variable to construct item (#1201)
1 parent 2113385 commit bb43189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/firestore/collections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export class AppComponent {
116116
addItem(name: string) {
117117
// Persist a document id
118118
const id = this.afs.createId();
119-
const item: Item = { id, item };
119+
const item: Item = { id, name };
120120
this.itemsCollection.add(item);
121121
}
122122
}

0 commit comments

Comments
 (0)