Skip to content

Commit

Permalink
feat: Automatically select the recommended tool version when creating…
Browse files Browse the repository at this point in the history
… read-only sessions

Fixes #1354
  • Loading branch information
zusorio committed Aug 2, 2024
1 parent 52a41ea commit 37f2cb8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ export class CreateReadonlySessionComponent implements OnInit {
.flat()
.filter((v) => v.tool.id === tool.id),
);
const recommendedVersion = this.relevantToolVersions?.find(
(t) => t.config.is_recommended,
);
if (recommendedVersion) {
this.toolSelectionForm.controls.version.patchValue(recommendedVersion);
}
}

removeVersionDuplicates(
Expand Down

0 comments on commit 37f2cb8

Please sign in to comment.