From e0051ef2330f56ff13ca57b7c01059cf4365493e Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Fri, 7 Aug 2020 23:51:29 +0800
Subject: ...

---
 Timeline/ClientApp/src/app/timeline/TimelinePageTemplateUI.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'Timeline/ClientApp/src/app/timeline/TimelinePageTemplateUI.tsx')

diff --git a/Timeline/ClientApp/src/app/timeline/TimelinePageTemplateUI.tsx b/Timeline/ClientApp/src/app/timeline/TimelinePageTemplateUI.tsx
index 43925ebb..8b9f8765 100644
--- a/Timeline/ClientApp/src/app/timeline/TimelinePageTemplateUI.tsx
+++ b/Timeline/ClientApp/src/app/timeline/TimelinePageTemplateUI.tsx
@@ -201,9 +201,9 @@ export default function TimelinePageTemplateUI<TManageItems>(
     if (timeline != null) {
       let timelineBody: React.ReactElement;
       if (postListState != null) {
-        if (postListState.posts == null) {
+        if (postListState.state === 'notexist') {
           throw new UiLogicError(
-            "Timeline is not null but postListState is 'timeline-notexist or 'timeline-offline'."
+            'Timeline is not null but post list state is notexist.'
           );
         }
         if (postListState.state === 'forbid') {
-- 
cgit v1.2.3

