mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 11:11:04 +01:00
remove more parseints
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user