buffer for form fix performed

This commit is contained in:
filipriec
2025-04-15 20:19:30 +02:00
parent 800b857e53
commit bbba67a253

View File

@@ -13,10 +13,10 @@ pub fn handle_intro_selection(
index: usize,
) {
let target_view = match index {
0 => buffer_state.history.iter().rev()
.find(|v| matches!(v, AppView::Form(_)))
.cloned()
.unwrap_or_else(|| AppView::Form("Default".to_string())),
0 => {
let form_name = app_state.selected_profile.clone().unwrap_or_else(|| "Data Form".to_string());
AppView::Form(form_name)
}
1 => AppView::Admin,
2 => AppView::Login,
3 => AppView::Register,