Skip to content

Commit 145e2f7

Browse files
authored
show variables only when it exists (microsoft#277)
1 parent fbe11fc commit 145e2f7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

rdagent/log/ui/app.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,10 @@ def tasks_window(tasks: list[FactorTask | ModelTask]):
460460
st.latex(mt.formulation)
461461

462462
mks = "| Variable | Description |\n| --- | --- |\n"
463-
for v, d in mt.variables.items():
464-
mks += f"| ${v}$ | {d} |\n"
465-
st.markdown(mks)
463+
if mt.variables:
464+
for v, d in mt.variables.items():
465+
mks += f"| ${v}$ | {d} |\n"
466+
st.markdown(mks)
466467

467468

468469
def research_window():

0 commit comments

Comments
 (0)