Added missing case for licenses for item_count

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-04-27 16:26:50 -07:00
parent e25dc42121
commit 567e19bcc0

View file

@ -38,6 +38,9 @@ class CategoriesTransformer
case 'component':
$category->item_count = $category->components_count;
break;
case 'license':
$category->item_count = $category->licenses_count;
break;
default:
$category->item_count = 0;
}