small fix

This commit is contained in:
Roy Han
2026-03-03 11:31:45 -08:00
parent c0e8e101d1
commit 65ece1047d

View File

@@ -250,8 +250,7 @@ impl ApprovalOverlay {
fn patch_selected_index(&self) -> Option<usize> {
self.patch_state()
.map(|_| self.list.scroll_state().selected_idx)
.flatten()
.and_then(|_| self.list.scroll_state().selected_idx)
}
fn patch_note_text(&self) -> String {