Skip to content

Commit 7c383b0

Browse files
committed
feat: fix reconnect query index issue
1 parent 1026d99 commit 7c383b0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

nebulagraph-gephi-exchange.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -597,14 +597,15 @@ def get_gephi_graph(g) -> None:
597597

598598
# df table
599599
st.markdown("---")
600-
st.markdown(
601-
f"""
600+
if len(st.session_state.queries) >= index + 1:
601+
st.markdown(
602+
f"""
602603
```cypher
603604
-- Query {index + 1}
604605
{st.session_state.queries[index]}
605606
```
606-
"""
607-
)
607+
"""
608+
)
608609
try:
609610
st.dataframe(
610611
csv_df,

0 commit comments

Comments
 (0)