diff --git a/core/store/src/state/recoil/document.ts b/core/store/src/state/recoil/document.ts index cc037cc03..5dd4895a9 100644 --- a/core/store/src/state/recoil/document.ts +++ b/core/store/src/state/recoil/document.ts @@ -49,9 +49,9 @@ export const useDocument = (docId: string) => { return store.docs[docId]; }; -export const useGetDocument = () => (docId: string) => { +export const useGetDocument = () => { const store = useStore(); - return store.docs[docId]; + return (docId: string) => store.docs[docId]; }; /**