ryoji-s 2 лет назад
Родитель
Сommit
4b00ad5eac

+ 0 - 1
apps/app/src/client/services/renderer/renderer.tsx

@@ -33,7 +33,6 @@ import {
 } from '~/services/renderer/renderer';
 import loggerFactory from '~/utils/logger';
 
-
 // import EasyGrid from './PreProcessor/EasyGrid';
 
 import '@growi/remark-lsx/dist/client/style.css';

+ 1 - 3
apps/app/src/stores/attachment.tsx

@@ -24,9 +24,7 @@ export const useSWRxAttachment = (attachmentId: string): SWRResponseWithUtils<Ut
   const swrResponse = useSWR(
     ['/attachment', attachmentId],
     useCallback(async([endpoint, attachmentId]) => {
-      const params = {
-        attachmentId,
-      };
+      const params = { attachmentId };
       const res = await apiv3Get(endpoint, params);
       return res.data.attachment;
     }, []),