Skip to content

Commit

Permalink
filter out invalid options for choice fields
Browse files Browse the repository at this point in the history
  • Loading branch information
w-e-w committed Nov 28, 2024
1 parent 023454b commit b67ffad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/xyz_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,8 @@ def process_axis(opt, vals, vals_dropdown):
valslist = opt.prepare(vals)
else:
valslist = csv_string_to_list_strip(vals)
if opt.choices is not None:
valslist = [x for x in valslist if x in opt.choices()]

if opt.type == int:
valslist_ext = []
Expand Down

0 comments on commit b67ffad

Please sign in to comment.