Skip to content

Commit 113c60a

Browse files
committed
Fixes #13909: Ignore empty choices when populating dynamic choice fields from initial data
1 parent 8a23756 commit 113c60a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/utilities/forms/fields/dynamic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def get_bound_field(self, form, field_name):
4343

4444
if data is not None:
4545
self.choices = [
46-
choice for choice in self.choices if choice[0] in data
46+
choice for choice in self.choices if choice[0] and choice[0] in data
4747
]
4848

4949
return bound_field

0 commit comments

Comments
 (0)