mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Prevent "null" from being displayed as part units
This commit is contained in:
parent
110d5f066e
commit
6e7b307423
@ -500,6 +500,11 @@ function duplicateBom(part_id, options={}) {
|
|||||||
*/
|
*/
|
||||||
function partStockLabel(part, options={}) {
|
function partStockLabel(part, options={}) {
|
||||||
|
|
||||||
|
// Prevent literal string 'null' from being displayed
|
||||||
|
if (part.units == null) {
|
||||||
|
part.units = '';
|
||||||
|
}
|
||||||
|
|
||||||
if (part.in_stock) {
|
if (part.in_stock) {
|
||||||
// There IS stock available for this part
|
// There IS stock available for this part
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user