diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index bdd7863e3c..8838abba84 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -100,7 +100,7 @@ launchDeleteForm("#modal-delete", "{% url 'part-delete' part.id %}", { - redirect: {% if part.category %}"{% url 'category-detail' part.category.id %}"{% else %}"{% url 'part-index' %}"}{% endif %} + redirect: {% if part.category %}"{% url 'category-detail' part.category.id %}"{% else %}"{% url 'part-index' %}"{% endif %} }); }); {% endblock %}