Skip to content

Commit 2d84b2b

Browse files
committed
fix: remove optional chaining
1 parent a0a045c commit 2d84b2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firestore/useCollection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const useCollectionInternal = <T = DocumentData>(
9090
listener();
9191
};
9292
} else {
93-
const get = getDocsFnFromGetOptions(options?.getOptions);
93+
const get = getDocsFnFromGetOptions(options ? options.getOptions : undefined);
9494
get(ref.current).then(setValue).catch(setError);
9595
}
9696
}, [ref.current]);

0 commit comments

Comments
 (0)