fix get users posts as array
This commit is contained in:
parent
7391e75fba
commit
63db4bd8ab
1 changed files with 2 additions and 1 deletions
|
@ -194,7 +194,8 @@ const getUsersPosts = (user) => {
|
||||||
}
|
}
|
||||||
return posts
|
return posts
|
||||||
} else {
|
} else {
|
||||||
return getPosts(fast)
|
const posts = getPosts(fast)
|
||||||
|
return Object.keys(posts).map(k => posts[k]).filler(p => p !== null)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue