Skip to content

Commit

Permalink
Retain current selection of gpu type choice to avoid it getting lost
Browse files Browse the repository at this point in the history
When the options for choices is changed (in the relevant phases or organization or because the user has changed) the current selection can easily be lost if it's not included in the options.
  • Loading branch information
koopmant committed Dec 6, 2024
1 parent 18b50ce commit f6c523d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/grandchallenge/algorithms/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ def job_requirement_properties_from_organizations(self):
@property
def selectable_gpu_type_choices(self):
choices_set = {
self.instance.job_requires_gpu_type,
*get_default_gpu_type_choices(),
*chain.from_iterable(
self.job_requirement_properties_from_phases["gpu_type_choices"]
Expand Down

0 comments on commit f6c523d

Please sign in to comment.