Fix wrong state assignment

This commit is contained in:
LordMathis 2019-10-31 23:10:11 +01:00
parent 9b427f086a
commit 1bde3b7e15
No known key found for this signature in database
GPG Key ID: 575849FD91CE470C
2 changed files with 3 additions and 3 deletions

View File

@ -20,8 +20,8 @@ export default class MainContainer extends Component {
}
this.state = {
isLoadingBlog: !data.posts,
isLoadingAbout: !data.other.about,
isLoadingBlog: !data[0].posts,
isLoadingAbout: !data[0].other.about,
about: data[0].other.about,
posts: data[0].posts,
config: data[1]

View File

@ -20,7 +20,7 @@ export default class PostContainer extends Component {
}
this.state = {
isLoading: !post,
isLoading: !data,
error: false,
post: data[0],
config: data[1]