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 | 769b40a0f32e4c00c2be00f1ce1bac98dc7d99cc (patch) | |
tree | f378d5d8ec6097a4ad0d8db9d72e8512d2ec8bfa /Timeline/ClientApp/src/app/timeline/TimelinePageTemplate.tsx | |
parent | 8b51558bdda8f828b9b64ec00705928ac76bc0e4 (diff) | |
download | timeline-769b40a0f32e4c00c2be00f1ce1bac98dc7d99cc.tar.gz timeline-769b40a0f32e4c00c2be00f1ce1bac98dc7d99cc.tar.bz2 timeline-769b40a0f32e4c00c2be00f1ce1bac98dc7d99cc.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;
|