From 4c9f042f8c28ed5b4f7d9960bad200a0eada7f6c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 26 Feb 2025 09:31:58 +1100 Subject: [PATCH] Handle case of null stock location (#9183) (#9187) (cherry picked from commit 94c2157d3c9af611b0d6e4668bb5eb2a51a01960) Co-authored-by: Oliver --- src/frontend/src/forms/StockForms.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/forms/StockForms.tsx b/src/frontend/src/forms/StockForms.tsx index 4cc010c7e9..9782d78e54 100644 --- a/src/frontend/src/forms/StockForms.tsx +++ b/src/frontend/src/forms/StockForms.tsx @@ -365,7 +365,7 @@ function StockItemDefaultMove({ /> - {stockItem.location_detail.pathstring} + {stockItem.location_detail?.pathstring ?? '-'} }> {data?.pathstring}