aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/timeline/TimelinePageTemplateUI.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-07 23:51:29 +0800
committercrupest <crupest@outlook.com>2020-08-07 23:51:29 +0800
commite0051ef2330f56ff13ca57b7c01059cf4365493e (patch)
treee6a41dac9ad481fe192b58e676f927cde74207ab /Timeline/ClientApp/src/app/timeline/TimelinePageTemplateUI.tsx
parent639c3e4456247f070179971f0ae426431b4da467 (diff)
downloadtimeline-e0051ef2330f56ff13ca57b7c01059cf4365493e.tar.gz
timeline-e0051ef2330f56ff13ca57b7c01059cf4365493e.tar.bz2
timeline-e0051ef2330f56ff13ca57b7c01059cf4365493e.zip
...
Diffstat (limited to 'Timeline/ClientApp/src/app/timeline/TimelinePageTemplateUI.tsx')
-rw-r--r--Timeline/ClientApp/src/app/timeline/TimelinePageTemplateUI.tsx4
1 files changed, 2 insertions, 2 deletions
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') {