|
|
@@ -100,14 +100,14 @@ const PageListItemLSubstance: ForwardRefRenderFunction<ISelectable, Props> = (pr
|
|
|
|
|
|
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
|
|
|
setLikerCount(pageInfo.likerIds?.length ?? 0);
|
|
|
// bookmarkCount
|
|
|
setBookmarkCount(pageInfo.bookmarkCount ?? 0);
|
|
|
}
|
|
|
- },[pageInfo])
|
|
|
+ }, [pageInfo]);
|
|
|
|
|
|
// click event handler
|
|
|
const clickHandler = useCallback(() => {
|