Skip to content

Commit f724c97

Browse files
fix: streamlit aggrid (#47)
* chore(deps): update pip packages: Bump streamlit-aggrid Bumps [streamlit-aggrid](https://github.com/PablocFonseca/streamlit-aggrid) from 0.3.4.post3 to 1.0.5. - [Commits](https://github.com/PablocFonseca/streamlit-aggrid/commits) --- updated-dependencies: - dependency-name: streamlit-aggrid dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix: update document selector for aggrid Signed-off-by: Scott Schreckengaust <scottschreckengaust@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Scott Schreckengaust <scottschreckengaust@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent abae757 commit f724c97

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

samples/document-explorer/client_app/pages/2_Select_Document.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ def to_tuple(s3_object):
331331
update_mode=GridUpdateMode.SELECTION_CHANGED,
332332
fit_columns_on_grid_load=True
333333
)
334-
335-
if selection["selected_rows"]:
336-
selected_filename = selection["selected_rows"][0]["Transformed Filename"]
334+
335+
if selection.selected_rows is not None:
336+
selected_filename = selection.selected_rows.iloc[0]["Transformed Filename"]
337337
st.session_state['selected_file'] = selected_filename
338338
print(st.session_state['selected_file'])
339339

samples/document-explorer/client_app/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ requests-aws4auth==1.3.1
88
streamlit==1.40.2
99
websocket-client==1.8.0
1010
st_pages==1.0.1
11-
streamlit-aggrid==0.3.4.post3
11+
streamlit-aggrid==1.0.5
1212
streamlit-javascript==0.1.5
1313

0 commit comments

Comments
 (0)