Shun Miyazawa před 2 roky
rodič
revize
6bf6184005
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      apps/app/src/stores/yjs.ts

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

@@ -35,7 +35,7 @@ export const useSWRMUTxCurrentPageYjsData = (): SWRMutationResponse<CurrentPageY
   const { data: currentPageId } = useCurrentPageId();
 
   return useSWRMutation(
-    currentPageId == null ? null : key,
+    key,
     () => apiv3Get<{ yjsData: CurrentPageYjsData }>(`/page/${currentPageId}/yjs-data`).then(result => result.data.yjsData),
     { populateCache: true, revalidate: false },
   );