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 = {
|
this.state = {
|
||||||
isLoadingBlog: !data.posts,
|
isLoadingBlog: !data[0].posts,
|
||||||
isLoadingAbout: !data.other.about,
|
isLoadingAbout: !data[0].other.about,
|
||||||
about: data[0].other.about,
|
about: data[0].other.about,
|
||||||
posts: data[0].posts,
|
posts: data[0].posts,
|
||||||
config: data[1]
|
config: data[1]
|
||||||
|
|
|
@ -20,7 +20,7 @@ export default class PostContainer extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
isLoading: !post,
|
isLoading: !data,
|
||||||
error: false,
|
error: false,
|
||||||
post: data[0],
|
post: data[0],
|
||||||
config: data[1]
|
config: data[1]
|
||||||
|
|
Loading…
Reference in New Issue