CCockrum commited on
Commit
5c22de8
·
verified ·
1 Parent(s): c721654

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -226,7 +226,7 @@ def display_pet_card(pet, is_favorite=False, context="search"):
226
  with col1:
227
  if st.button("View Details", key=f"details_{context}_{pet['id']}"):
228
  st.session_state.selected_pet = pet['id']
229
- st.stop()
230
  with col2:
231
  if not is_favorite:
232
  if st.button("Add to Favorites", key=f"fav_{context}_{pet['id']}"):
 
226
  with col1:
227
  if st.button("View Details", key=f"details_{context}_{pet['id']}"):
228
  st.session_state.selected_pet = pet['id']
229
+ st.rerun()
230
  with col2:
231
  if not is_favorite:
232
  if st.button("Add to Favorites", key=f"fav_{context}_{pet['id']}"):