Skip to content

fix(operations): drop stale row selections beyond current table length - #9

Merged
hansipie merged 1 commit into
mainfrom
fix/stale-row-selection
Sep 4, 2026
Merged

hansipie merged 1 commit into
mainfrom
fix/stale-row-selection

Conversation

@hansipie

@hansipie hansipie commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • rows_selected now takes the current table length and filters out selection indices no longer valid for it, preventing an out-of-bounds .iloc[] after an archive/delete/refresh shrinks the table.
  • Bump typer 0.27.1 -> 0.27.2 (uv.lock).

Test plan

  • Select a row, delete/archive it, confirm no crash and selection is cleared cleanly.

Selection state in st.session_state can outlive the dataframe it was
captured from (e.g. after an archive/delete or a refresh shrinks the
table), causing an out-of-bounds .iloc[] downstream. rows_selected now
takes the current table length and filters out indices no longer valid.

chore(deps): bump typer 0.27.1 -> 0.27.2
@hansipie
hansipie merged commit 66e297d into main Sep 4, 2026
1 check passed
@hansipie
hansipie deleted the fix/stale-row-selection branch September 4, 2026 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant