From a6a1f1141447afed63bee771e6999376e72d8ddc Mon Sep 17 00:00:00 2001 From: Jason Novinger Date: Wed, 26 Mar 2025 17:41:49 -0500 Subject: [PATCH] Fixes #18999: Allow GraphQL to represent inventory items with no set manufacturar --- netbox/dcim/graphql/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/dcim/graphql/types.py b/netbox/dcim/graphql/types.py index 8d992176a..b644cc50c 100644 --- a/netbox/dcim/graphql/types.py +++ b/netbox/dcim/graphql/types.py @@ -429,7 +429,7 @@ class InterfaceTemplateType(ModularComponentTemplateType): ) class InventoryItemType(ComponentType): role: Annotated["InventoryItemRoleType", strawberry.lazy('dcim.graphql.types')] | None - manufacturer: Annotated["ManufacturerType", strawberry.lazy('dcim.graphql.types')] + manufacturer: Annotated["ManufacturerType", strawberry.lazy('dcim.graphql.types')] | None child_items: List[Annotated["InventoryItemType", strawberry.lazy('dcim.graphql.types')]]