fixed content not loadiing on some url
This commit is contained in:
parent
60c4cd250f
commit
4c894c13aa
1 changed files with 3 additions and 2 deletions
|
@ -205,14 +205,15 @@ export default class Page extends React.Component<PageProps, PageState> {
|
|||
}
|
||||
|
||||
// fetch page
|
||||
const MapPost = map.posts[url]
|
||||
const fetchedPage: FetchedPage = {
|
||||
...map.posts[url],
|
||||
...MapPost,
|
||||
toc: undefined,
|
||||
content: "",
|
||||
tags: [] as string[],
|
||||
}
|
||||
|
||||
if (!fetchedPage) {
|
||||
if (!MapPost) {
|
||||
_isUnsearchable = true
|
||||
this.setState({ isUnsearchable: _isUnsearchable })
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue