Skip to content

Commit

Permalink
Fixes #13859: Fix valid response when no matching choice values are f…
Browse files Browse the repository at this point in the history
…ound
  • Loading branch information
jeremystretch committed Sep 26, 2023
1 parent 3cb41bb commit b759d69
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion netbox/extras/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ def choices(self, request, pk):
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)


#
Expand Down

0 comments on commit b759d69

Please sign in to comment.