diff --git a/InvenTree/part/templates/part/upload_bom.html b/InvenTree/part/templates/part/upload_bom.html index 57c7014197..151a4b5424 100644 --- a/InvenTree/part/templates/part/upload_bom.html +++ b/InvenTree/part/templates/part/upload_bom.html @@ -89,8 +89,11 @@ $('#bom-upload').click(function() { }, title: '{% trans "Upload BOM File" %}', onSuccess: function(response) { - $('#bom-upload').hide(); + // Clear existing entries from the table + $('.bom-import-row').remove(); + + // Disable the "submit" button $('#bom-submit').show(); constructBomUploadTable(response);