diff --git a/InvenTree/static/script/inventree/stock.js b/InvenTree/static/script/inventree/stock.js index 91aec8c6d1..a858dca122 100644 --- a/InvenTree/static/script/inventree/stock.js +++ b/InvenTree/static/script/inventree/stock.js @@ -65,7 +65,12 @@ function updateStock(items, options={}) { html += ''; html += '' + item.part.name + ''; - html += '' + item.location.name + ''; + + if (item.location) { + html += '' + item.location.name + ''; + } else { + html += 'No location set'; + } html += "