Skip to content

Commit 939c43f

Browse files
authored
Bugfix: in "snapshotToData" helper call snapshot.exists() to check if doc exists (it was forgotten to call)
1 parent b33a455 commit 939c43f

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)