Skip to content

Commit

Permalink
fix: add check for empty collection ID to prevent data fetching when …
Browse files Browse the repository at this point in the history
…not conforming

Co-authored-by: yzqzss <[email protected]>
yzqzss,坏坏坏
  • Loading branch information
Ovler-Young committed Nov 20, 2024
1 parent 235371e commit 84ad62a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ia_collection_analyzer/streamlit.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
with col2:
conform_button = st.button("Conform")

if not conform_button and not st.session_state.got_metadata:
if not conform_button and not st.session_state.got_metadata or collection_id == "":
st.stop()

# Check if we need to fetch new data
Expand Down

0 comments on commit 84ad62a

Please sign in to comment.