diff --git a/InvenTree/part/templates/part/category.html b/InvenTree/part/templates/part/category.html index 343d7a8c40..6a076ef8ca 100644 --- a/InvenTree/part/templates/part/category.html +++ b/InvenTree/part/templates/part/category.html @@ -36,9 +36,9 @@ {% if category and category.children.all|length > 0 %} -{% include "part/subcategories.html" with children=category.children.all collapse_id="children"%} +{% include "part/subcategories.html" with children=category.children.all collapse_id="categories" %} {% elif children|length > 0 %} -{% include "part/subcategories.html" with children=children %} +{% include "part/subcategories.html" with children=children collapse_id="categories" %} {% endif %}