From 8a26d55bce85a92079f524de14cd8b0d58c54044 Mon Sep 17 00:00:00 2001 From: "ildar.timerbaev" Date: Thu, 5 Oct 2023 16:38:09 +0600 Subject: [PATCH] Fixed entry list item disappearing --- src/common/components/entry-list-item/index.tsx | 4 ++-- src/common/components/entry-list/index.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/components/entry-list-item/index.tsx b/src/common/components/entry-list-item/index.tsx index 08638d64a7c..dfeb9ca16eb 100644 --- a/src/common/components/entry-list-item/index.tsx +++ b/src/common/components/entry-list-item/index.tsx @@ -144,7 +144,7 @@ export function EntryListItem({ [entry] ); - return isMounted() ? ( + return (
- ) : null; + ); } export default EntryListItem; diff --git a/src/common/components/entry-list/index.tsx b/src/common/components/entry-list/index.tsx index 06af6a7b86d..31a22044cd7 100644 --- a/src/common/components/entry-list/index.tsx +++ b/src/common/components/entry-list/index.tsx @@ -4,11 +4,11 @@ import { Global } from "../../store/global/types"; import { Account } from "../../store/accounts/types"; import { DynamicProps } from "../../store/dynamic-props/types"; import { Entry } from "../../store/entries/types"; -import { Community, Communities } from "../../store/communities/types"; +import { Community } from "../../store/communities/types"; import { User } from "../../store/users/types"; import { ActiveUser } from "../../store/active-user/types"; import { Reblogs } from "../../store/reblogs/types"; -import { UI, ToggleType } from "../../store/ui/types"; +import { ToggleType, UI } from "../../store/ui/types"; import EntryListItem from "../entry-list-item/index"; import MessageNoData from "../message-no-data";