Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit 1ed9de5

Browse files
authored
Merge pull request #468 from microsoft/trboehre/find-fix
Find.find_choices would loop forever if Choice.synonyms was specified.
2 parents 9d0fef1 + 16b2080 commit 1ed9de5

File tree

1 file changed

+1
-1
lines changed
  • libraries/botbuilder-dialogs/botbuilder/dialogs/choices

1 file changed

+1
-1
lines changed

libraries/botbuilder-dialogs/botbuilder/dialogs/choices/find.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def find_choices(
5454
synonyms.append(SortedValue(value=choice.action.title, index=index))
5555

5656
if choice.synonyms is not None:
57-
for synonym in synonyms:
57+
for synonym in choice.synonyms:
5858
synonyms.append(SortedValue(value=synonym, index=index))
5959

6060
def found_choice_constructor(value_model: ModelResult) -> ModelResult:

0 commit comments

Comments
 (0)