Jelajahi Sumber

fix response type

Shun Miyazawa 2 tahun lalu
induk
melakukan
14317c025b
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      apps/app/src/stores/yjs.ts

+ 1 - 1
apps/app/src/stores/yjs.ts

@@ -30,7 +30,7 @@ export const useCurrentPageYjsData = (): SWRResponse<CurrentPageYjsData, Error>
   };
   };
 };
 };
 
 
-export const useSWRMUTxCurrentPageYjsData = (): SWRMutationResponse<CurrentPageYjsData|null> => {
+export const useSWRMUTxCurrentPageYjsData = (): SWRMutationResponse<CurrentPageYjsData, Error> => {
   const key = 'currentPageYjsData';
   const key = 'currentPageYjsData';
   const { data: currentPageId } = useCurrentPageId();
   const { data: currentPageId } = useCurrentPageId();