correct place for count correction

This commit is contained in:
Daniel Lugo 2020-06-26 21:12:23 -04:00
parent ca9ecb6c80
commit b1594e1707

View file

@ -71,8 +71,6 @@ const getWallPage = async page => {
if (post === null) {
// @ts-ignore
delete clean.posts[key]
// @ts-ignore
clean.count--
} else {
post.id = key
}
@ -96,6 +94,7 @@ const getWallPage = async page => {
// delete unsuccessful writes
if (post === null) {
delete clean.posts[key]
clean.count--
} else {
post.id = key
}