1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #13859: Fix valid response when no matching choice values are found

This commit is contained in:
Jeremy Stretch
2023-09-25 09:57:54 -04:00
parent 3cb41bbe3a
commit b759d694ee

View File

@@ -82,7 +82,10 @@ class CustomFieldChoiceSetViewSet(NetBoxModelViewSet):
data = [
{'id': c[0], 'display': c[1]} for c in page
]
return self.get_paginated_response(data)
else:
data = []
return self.get_paginated_response(data)
#