Skip to content

Commit a3868e6

Browse files
authored
Merge pull request #179 from dsvgit/patch-1
Bugfix: in "snapshotToData" helper call snapshot.exists(). It was property, now it became method after v4 update (firebase v9)
2 parents a22fbd7 + 939c43f commit a3868e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firestore/helpers/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const snapshotToData = <T = DocumentData>(
1717
refField?: string,
1818
transform?: (val: any) => T
1919
) => {
20-
if (!snapshot.exists) {
20+
if (!snapshot.exists()) {
2121
return undefined;
2222
}
2323

0 commit comments

Comments
 (0)