diff options
| author | crupest <crupest@outlook.com> | 2021-01-11 21:44:44 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2021-01-11 21:44:44 +0800 |
| commit | b01daf806af2980ca980bdcb3190ea54cba0677b (patch) | |
| tree | e53ff2372fbef03fb29000281a49791a9bd8d6f9 /FrontEnd | |
| parent | 9b95bd40ab1637cdea343b078e9e391ba4f5415d (diff) | |
| download | timeline-b01daf806af2980ca980bdcb3190ea54cba0677b.tar.gz timeline-b01daf806af2980ca980bdcb3190ea54cba0677b.tar.bz2 timeline-b01daf806af2980ca980bdcb3190ea54cba0677b.zip | |
...
Diffstat (limited to 'FrontEnd')
| -rw-r--r-- | FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx index d7e4d696..f5dec67c 100644 --- a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx +++ b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx @@ -78,9 +78,7 @@ export default function TimelinePageTemplate<TManageItem>( const { data: postsInfo } = postsAndState; if (postsInfo === "forbid") { return "forbid"; - } else if (postsInfo === "notexist") { - return undefined; - } else if (postsInfo == null) { + } else if (postsInfo == null || postsInfo === "notexist") { return undefined; } else { return postsInfo.posts.map((post) => ({ |
