ソースを参照

fix response type

Shun Miyazawa 1 年間 前
コミット
14317c025b
1 ファイル変更1 行追加1 行削除
  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 { data: currentPageId } = useCurrentPageId();