Skip to content

Commit

Permalink
Fix rendering logic of results panel controls
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Jan 13, 2025
1 parent a7d2e3f commit 5d39a90
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/aiidalab_qe/common/panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,11 +635,14 @@ def render(self):
]
self._load_results()
else:
self.children = [
self.guide,
self._get_controls_section(),
self.results_container,
]
children = [self.guide]
if (
self._model.identifier != "structure"
or "relax" in self._model.properties
):
children.append(self._get_controls_section())
children.append(self.results_container)
self.children = children
if self._model.identifier == "structure":
self._load_results()

Expand Down

0 comments on commit 5d39a90

Please sign in to comment.