yohei0125 4 лет назад
Родитель
Сommit
45a405ca56
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      packages/app/src/components/PageList/PageListItemL.tsx

+ 3 - 3
packages/app/src/components/PageList/PageListItemL.tsx

@@ -100,14 +100,14 @@ const PageListItemLSubstance: ForwardRefRenderFunction<ISelectable, Props> = (pr
 
 
   const lastUpdateDate = format(new Date(pageData.updatedAt), 'yyyy/MM/dd HH:mm:ss');
   const lastUpdateDate = format(new Date(pageData.updatedAt), 'yyyy/MM/dd HH:mm:ss');
 
 
-  useEffect(()=>{
-    if(isIPageInfoForEntity(pageInfo) && pageInfo != null) {
+  useEffect(() => {
+    if (isIPageInfoForEntity(pageInfo) && pageInfo != null) {
       // likerCount
       // likerCount
       setLikerCount(pageInfo.likerIds?.length ?? 0);
       setLikerCount(pageInfo.likerIds?.length ?? 0);
       // bookmarkCount
       // bookmarkCount
       setBookmarkCount(pageInfo.bookmarkCount ?? 0);
       setBookmarkCount(pageInfo.bookmarkCount ?? 0);
     }
     }
-  },[pageInfo])
+  }, [pageInfo]);
 
 
   // click event handler
   // click event handler
   const clickHandler = useCallback(() => {
   const clickHandler = useCallback(() => {