Skip to content

Commit 26f0156

Browse files
Fixing Document.toString()
This broke when data became data() in #2115
1 parent 64b1924 commit 26f0156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/src/model/document.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export class Document extends MaybeDocument {
150150

151151
toString(): string {
152152
return (
153-
`Document(${this.key}, ${this.version}, ${this.data.toString()}, ` +
153+
`Document(${this.key}, ${this.version}, ${this.data().toString()}, ` +
154154
`{hasLocalMutations: ${this.hasLocalMutations}}), ` +
155155
`{hasCommittedMutations: ${this.hasCommittedMutations}})`
156156
);

0 commit comments

Comments
 (0)