CCockrum commited on
Commit
07c4aa4
·
verified ·
1 Parent(s): b5432ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -225,9 +225,9 @@ def display_pet_card(pet, is_favorite=False):
225
  col1, col2 = st.columns(2)
226
  with col1:
227
  if st.button("View Details", key=f"details_{pet['id']}"):
228
- if st.session_state.selected_pet != pet['id']:
229
- st.session_state.selected_pet = pet['id']
230
- st.experimental_rerun() # Force immediate rerun
231
 
232
  with col2:
233
  if not is_favorite:
 
225
  col1, col2 = st.columns(2)
226
  with col1:
227
  if st.button("View Details", key=f"details_{pet['id']}"):
228
+ if st.session_state.selected_pet != pet['id']:
229
+ st.session_state.selected_pet = pet['id']
230
+ st.experimental_rerun() # Force immediate rerun
231
 
232
  with col2:
233
  if not is_favorite: