Skip to content

Commit

Permalink
fix: status_html no longer fails when _data is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman committed Nov 7, 2024
1 parent 87bd2aa commit 6526445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aind_qc_portal/panel/quality_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def panel(self):

state_md = f"""
<span style="font-size:14pt">Current state:</span>
<span style="font-size:12pt">Status: **{status_html(self._data.status)}**</span>
<span style="font-size:12pt">Status: **{status_html(self._data.status) if self._has_data else ""}**</span>
<span style="font-size:12pt">Contains {len(self.evaluations)} evaluations. {failing_eval_str}</span>
"""

Expand Down

0 comments on commit 6526445

Please sign in to comment.