aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src
diff options
context:
space:
mode:
Diffstat (limited to 'FrontEnd/src')
-rw-r--r--FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx4
1 files changed, 1 insertions, 3 deletions
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<TManageItem>(
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) => ({