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

- Otherwise results in a 400 error
This commit is contained in:
Oliver 2024-08-26 09:40:45 +10:00 committed by GitHub
parent d98c396f07
commit 881220cdb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -622,7 +622,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 />
},
{