Skip to content

Commit 6a326a7

Browse files
authored
fix(categories-list): fix missing children count (#81)
1 parent 0f196f6 commit 6a326a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tree-view-providers/converters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const postConverter: Converter<Post> = obj => {
5252
};
5353

5454
const categoryConverter: Converter<PostCategory> = ({ title, count }) =>
55-
Object.assign<TreeItem, TreeItem>(new TreeItem(title), {
55+
Object.assign<TreeItem, TreeItem>(new TreeItem(`${title}(${count})`), {
5656
collapsibleState: count > 0 ? TreeItemCollapsibleState.Collapsed : TreeItemCollapsibleState.None,
5757
iconPath: categoryIcon(),
5858
contextValue: 'cnb-post-category',

0 commit comments

Comments
 (0)