Bug fix for BOM table (#4540)

This commit is contained in:
Oliver 2023-03-30 11:07:46 +11:00 committed by GitHub
parent d5a71b2fe8
commit 47f52478e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1247,14 +1247,14 @@ function loadBomTable(table, options={}) {
var bDelt = makeDeleteButton('bom-delete-button', row.pk, '{% trans "Delete BOM Item" %}');
let buttons = '';
if (!row.validated) {
html += bValidate;
buttons += bValidate;
} else {
html += bValid;
buttons += bValid;
}
var buttons = '';
buttons += bEdit;
buttons += bSubs;
buttons += bDelt;