From db4fb8f4064e95e5caed39efe1c3b9d066d51877 Mon Sep 17 00:00:00 2001 From: Jason Novinger Date: Fri, 28 Mar 2025 09:57:56 -0500 Subject: [PATCH] Fixes #18999: Allow GraphQL to represent inventory items with no set manufacturar (#19016) --- 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')]]