Skip to content

Commit

Permalink
Merge pull request #1683 from DSD-DBS/auto-select-versions-read-only-…
Browse files Browse the repository at this point in the history
…sessions

feat: Auto-select recommended version for read-only sessions
  • Loading branch information
MoritzWeber0 authored Aug 2, 2024
2 parents 52a41ea + d956401 commit 72a2860
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 72a2860

Please sign in to comment.