mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 13:06:45 +00:00
Hide "build orders" tab for inactive parts (#7992)
- Otherwise results in a 400 error
This commit is contained in:
parent
d98c396f07
commit
881220cdb3
@ -622,7 +622,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 />
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user