diff --git a/netbox/dcim/forms/bulk_import.py b/netbox/dcim/forms/bulk_import.py index d7b7d7d47..cb36e94bf 100644 --- a/netbox/dcim/forms/bulk_import.py +++ b/netbox/dcim/forms/bulk_import.py @@ -1164,8 +1164,8 @@ class InventoryItemImportForm(NetBoxModelImportForm): def clean(self): super().clean() cleaned_data = self.cleaned_data - component_type = cleaned_data.get('component_type', None) - component_name = cleaned_data.get('component_name', None) + component_type = cleaned_data.get('component_type') + component_name = cleaned_data.get('component_name') device = self.cleaned_data.get("device") if component_type: