From 6e9937e0e9996a1c1e0ac9dcd25fd39a3bbfb764 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 30 Nov 2021 15:24:19 +1100 Subject: [PATCH] Don't be dull, check for null --- InvenTree/templates/js/translated/order.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/InvenTree/templates/js/translated/order.js b/InvenTree/templates/js/translated/order.js index c61722858d..a471182399 100644 --- a/InvenTree/templates/js/translated/order.js +++ b/InvenTree/templates/js/translated/order.js @@ -701,6 +701,11 @@ function loadPurchaseOrderTable(table, options) { switchable: true, sortable: false, formatter: function(value, row) { + + if (!row.responsible_detail) { + return '-'; + } + var html = row.responsible_detail.name; if (row.responsible_detail.label == 'group') {