|
@@ -63,7 +63,7 @@ const getItems = (types = styleTypes): any => {
|
|
|
children: "children" in item ? getItems(item.children) : null,
|
|
|
};
|
|
|
})
|
|
|
- .filter((item) => !props.count || item.count);
|
|
|
+ .filter((item) => !props.count || item.count || item.key === allType.id);
|
|
|
};
|
|
|
const getCurrentItem = (type: number, all = items.value): any => {
|
|
|
for (const item of all) {
|