remove more parseints

This commit is contained in:
Barış Soner Uşaklı
2018-10-23 22:28:37 -04:00
parent 728e7bdae9
commit 44a957faca
3 changed files with 11 additions and 21 deletions

View File

@@ -89,12 +89,10 @@ function modifyCategory(category) {
}
if (category.hasOwnProperty('post_count')) {
category.post_count = category.post_count || 0;
category.totalPostCount = category.post_count;
}
if (category.hasOwnProperty('topic_count')) {
category.topic_count = category.topic_count || 0;
category.totalTopicCount = category.topic_count;
}