Make sure adding a selection later updates selected

This commit is contained in:
Dave Pearson
2023-05-24 10:16:06 +01:00
parent d3fe23f0bc
commit 7110b30b44

View File

@@ -616,7 +616,7 @@ class SelectionList(Generic[SelectionType], OptionList):
)
)
elif isinstance(item, Selection):
cleaned_options.append(item)
cleaned_options.append(self._make_selection(item))
else:
raise SelectionError(
"Only Selection or a prompt/value tuple is supported in SelectionList"