Fix wrong state assignment
This commit is contained in:
parent
9b427f086a
commit
1bde3b7e15
|
@ -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]
|
||||
|
|
|
@ -20,7 +20,7 @@ export default class PostContainer extends Component {
|
|||
}
|
||||
|
||||
this.state = {
|
||||
isLoading: !post,
|
||||
isLoading: !data,
|
||||
error: false,
|
||||
post: data[0],
|
||||
config: data[1]
|
||||
|
|
Loading…
Reference in New Issue