mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Show placeholder for null IPN values in "stock" table (#3737)
- Otherwise can display the text "null"
This commit is contained in:
parent
1f2859d8c9
commit
52071f2c3f
@ -1729,7 +1729,11 @@ function loadStockTable(table, options) {
|
||||
switchable: params['part_detail'],
|
||||
formatter: function(value, row) {
|
||||
var ipn = row.part_detail.IPN;
|
||||
return withTitle(shortenString(ipn), ipn);
|
||||
if (ipn) {
|
||||
return withTitle(shortenString(ipn), ipn);
|
||||
} else {
|
||||
return '-';
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user