From b01daf806af2980ca980bdcb3190ea54cba0677b Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 11 Jan 2021 21:44:44 +0800 Subject: ... --- FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'FrontEnd/src') diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx index d7e4d696..f5dec67c 100644 --- a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx +++ b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx @@ -78,9 +78,7 @@ export default function TimelinePageTemplate( const { data: postsInfo } = postsAndState; if (postsInfo === "forbid") { return "forbid"; - } else if (postsInfo === "notexist") { - return undefined; - } else if (postsInfo == null) { + } else if (postsInfo == null || postsInfo === "notexist") { return undefined; } else { return postsInfo.posts.map((post) => ({ -- cgit v1.2.3