Shun Miyazawa 1 год назад
Родитель
Сommit
6bf6184005
1 измененных файлов с 1 добавлено и 1 удалено
  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 },
   );