mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-19 17:59:11 -06:00
Fixes #13859: Fix valid response when no matching choice values are found
This commit is contained in:
parent
3cb41bbe3a
commit
b759d694ee
@ -82,6 +82,9 @@ class CustomFieldChoiceSetViewSet(NetBoxModelViewSet):
|
||||
data = [
|
||||
{'id': c[0], 'display': c[1]} for c in page
|
||||
]
|
||||
else:
|
||||
data = []
|
||||
|
||||
return self.get_paginated_response(data)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user