niro commited on
Commit
a427483
·
1 Parent(s): e65ea00
Files changed (1) hide show
  1. explorer.py +2 -2
explorer.py CHANGED
@@ -7,6 +7,6 @@ def view_document(supabase):
7
  st.write("**This feature is in active development**")
8
  # Display a list of elements from the documents
9
  # If the user clicks on an element, display the content of the document
10
- for document in response.data:
11
- if st.button(document['content'][:50].replace("\n", " ")):
12
  continue
 
7
  st.write("**This feature is in active development**")
8
  # Display a list of elements from the documents
9
  # If the user clicks on an element, display the content of the document
10
+ for idx, document in enumerate(response.data):
11
+ if st.button(document['content'][:50].replace("\n", " "), key=idx):
12
  continue