From 39eeab5bdb1bfbf97a3f74ea9afb1a8c8843f549 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Sat, 8 Aug 2020 20:40:07 +0800
Subject: ...

---
 Timeline/ClientApp/src/app/timeline/TimelinePageTemplate.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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

diff --git a/Timeline/ClientApp/src/app/timeline/TimelinePageTemplate.tsx b/Timeline/ClientApp/src/app/timeline/TimelinePageTemplate.tsx
index edb9564a..89101f8f 100644
--- a/Timeline/ClientApp/src/app/timeline/TimelinePageTemplate.tsx
+++ b/Timeline/ClientApp/src/app/timeline/TimelinePageTemplate.tsx
@@ -52,9 +52,9 @@ export default function TimelinePageTemplate<TManageItem>(
 
   const error: string | undefined = (() => {
     if (timelineState != null) {
-      const { syncState, timeline } = timelineState;
-      if (syncState === 'offline' && timeline == null) return 'Network Error';
-      if (syncState === 'synced' && timeline == null)
+      const { type, timeline } = timelineState;
+      if (type === 'offline' && timeline == null) return 'Network Error';
+      if (type === 'synced' && timeline == null)
         return t(props.notFoundI18nKey);
     }
     return undefined;
-- 
cgit v1.2.3

