2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 12:05:53 +00:00

Hide "build orders" tab for inactive parts (#7992) (#7993)

- Otherwise results in a 400 error

(cherry picked from commit 881220cdb3)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
github-actions[bot]
2024-08-26 09:41:59 +10:00
committed by GitHub
parent 92871bf000
commit edf02cd817

View File

@ -554,7 +554,7 @@ export default function PartDetail() {
name: 'builds',
label: t`Build Orders`,
icon: <IconTools />,
hidden: !part.assembly,
hidden: !part.assembly || !part.active,
content: part?.pk ? <BuildOrderTable partId={part.pk} /> : <Skeleton />
},
{