From 881220cdb34a519decd0f9d01b96d441b5f1b0d6 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 26 Aug 2024 09:40:45 +1000 Subject: [PATCH] Hide "build orders" tab for inactive parts (#7992) - Otherwise results in a 400 error --- src/frontend/src/pages/part/PartDetail.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/pages/part/PartDetail.tsx b/src/frontend/src/pages/part/PartDetail.tsx index 8be6048f06..5cd977b477 100644 --- a/src/frontend/src/pages/part/PartDetail.tsx +++ b/src/frontend/src/pages/part/PartDetail.tsx @@ -622,7 +622,7 @@ export default function PartDetail() { name: 'builds', label: t`Build Orders`, icon: , - hidden: !part.assembly, + hidden: !part.assembly || !part.active, content: part?.pk ? : }, {