diff options
author | crupest <crupest@outlook.com> | 2020-08-08 20:40:07 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-08 20:40:07 +0800 |
commit | 39eeab5bdb1bfbf97a3f74ea9afb1a8c8843f549 (patch) | |
tree | ea2cfdf85579f2a6aa5dd64f46f242386d4429a5 /Timeline/ClientApp/src/app/timeline/TimelinePageTemplate.tsx | |
parent | b59d424c98f149b818b9ed93a050d5a3815217b6 (diff) | |
download | timeline-39eeab5bdb1bfbf97a3f74ea9afb1a8c8843f549.tar.gz timeline-39eeab5bdb1bfbf97a3f74ea9afb1a8c8843f549.tar.bz2 timeline-39eeab5bdb1bfbf97a3f74ea9afb1a8c8843f549.zip |
...
Diffstat (limited to 'Timeline/ClientApp/src/app/timeline/TimelinePageTemplate.tsx')
-rw-r--r-- | Timeline/ClientApp/src/app/timeline/TimelinePageTemplate.tsx | 6 |
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;
|