Prevent "null" from being displayed as part units

This commit is contained in:
Oliver 2022-04-28 09:51:51 +10:00
parent 110d5f066e
commit 6e7b307423

View File

@ -500,6 +500,11 @@ function duplicateBom(part_id, options={}) {
*/
function partStockLabel(part, options={}) {
// Prevent literal string 'null' from being displayed
if (part.units == null) {
part.units = '';
}
if (part.in_stock) {
// There IS stock available for this part