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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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