Skip to content

Commit d0afc0a

Browse files
committed
fix(firestore): pass the id as a value
1 parent 6d4f151 commit d0afc0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/firestore/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const firestoreDefaultConverter: FirestoreDataConverter<VueFirestoreDocum
3535
? (Object.defineProperties(snapshot.data(options)!, {
3636
id: {
3737
// TODO: can the `id` change? If so this should be a get
38-
value: () => snapshot.id,
38+
value: snapshot.id,
3939
},
4040
// TODO: check if worth adding or should be through an option
4141
// $meta: {

0 commit comments

Comments
 (0)