Skip to content

Commit eea74f4

Browse files
Brian Chenschmidt-sebastian
Brian Chen
andauthored
Update packages/firestore/src/api/database.ts
Co-authored-by: Sebastian Schmidt <[email protected]>
1 parent 9cc45a1 commit eea74f4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/firestore/src/api/database.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -2383,9 +2383,8 @@ export class CollectionReference<T = DocumentData>
23832383
const docRef = this.doc();
23842384

23852385
// Call set() with the converted value directly to avoid calling toFirestore() a second time.
2386-
// Cast to unknown in order to access the _key property.
23872386
return new DocumentReference(
2388-
((docRef as unknown) as DocumentReference)._key,
2387+
(docRef as DocumentReference<T>)._key,
23892388
this.firestore,
23902389
null
23912390
)

0 commit comments

Comments
 (0)