Skip to content

Commit b67ffad

Browse files
committed
filter out invalid options for choice fields
1 parent 023454b commit b67ffad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/xyz_grid.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,8 @@ def process_axis(opt, vals, vals_dropdown):
558558
valslist = opt.prepare(vals)
559559
else:
560560
valslist = csv_string_to_list_strip(vals)
561+
if opt.choices is not None:
562+
valslist = [x for x in valslist if x in opt.choices()]
561563

562564
if opt.type == int:
563565
valslist_ext = []

0 commit comments

Comments
 (0)