diff options
author | crupest <crupest@outlook.com> | 2020-08-07 23:51:29 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-07 23:51:29 +0800 |
commit | 151105f387c65f2285f61f8e492ad06734ec9f64 (patch) | |
tree | c2186add6890e2a5af233345b08af065cada4d68 /Timeline/ClientApp/src/app/timeline/TimelinePageTemplateUI.tsx | |
parent | bace0870ee294e44d0112ba49de12b27fa3c0a31 (diff) | |
download | timeline-151105f387c65f2285f61f8e492ad06734ec9f64.tar.gz timeline-151105f387c65f2285f61f8e492ad06734ec9f64.tar.bz2 timeline-151105f387c65f2285f61f8e492ad06734ec9f64.zip |
...
Diffstat (limited to 'Timeline/ClientApp/src/app/timeline/TimelinePageTemplateUI.tsx')
-rw-r--r-- | Timeline/ClientApp/src/app/timeline/TimelinePageTemplateUI.tsx | 4 |
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') {
|