mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 04:55:44 +00:00
Fix rendering issues
This commit is contained in:
@ -696,7 +696,14 @@ function loadStockTable(table, options) {
|
||||
}
|
||||
|
||||
var link = `/supplier-part/${row.supplier_part}/stock/`;
|
||||
var text = `${row.supplier_part_detail.SKU}`;
|
||||
|
||||
var text = '';
|
||||
|
||||
if (row.supplier_part_detail) {
|
||||
text = `${row.supplier_part_detail.SKU}`;
|
||||
} else {
|
||||
text = `<i>{% trans "Supplier part not specified" %}</i>`;
|
||||
}
|
||||
|
||||
return renderLink(text, link);
|
||||
}
|
||||
|
Reference in New Issue
Block a user