Skip to content

Commit

Permalink
check if the code is installed and usable
Browse files Browse the repository at this point in the history
  • Loading branch information
superstar54 committed Apr 10, 2024
1 parent 86f4aac commit e2589be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/aiidalab_qe/app/submission/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,9 @@ def _get_code_uuid(code):

with self.hold_trait_notifications():
for name, code in self.codes.items():
code.value = _get_code_uuid(codes.get(name))
# check if the code is installed and usable
if _get_code_uuid(codes.get(name)) in code.code_select_dropdown.options:
code.value = _get_code_uuid(codes.get(name))

def update_codes_display(self):
"""Hide code if no related property is selected."""
Expand Down

0 comments on commit e2589be

Please sign in to comment.