aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/timeline/TimelinePageTemplate.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'Timeline/ClientApp/src/app/timeline/TimelinePageTemplate.tsx')
-rw-r--r--Timeline/ClientApp/src/app/timeline/TimelinePageTemplate.tsx6
1 files changed, 3 insertions, 3 deletions
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;