mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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',
|
||||
label: t`Build Orders`,
|
||||
icon: <IconTools />,
|
||||
hidden: !part.assembly,
|
||||
hidden: !part.assembly || !part.active,
|
||||
content: part?.pk ? <BuildOrderTable partId={part.pk} /> : <Skeleton />
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user