Skip to content

Commit

Permalink
Fixed #115
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-cpsn committed Oct 27, 2024
1 parent 6c11948 commit e3287f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/tui/tui_logic/request/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl App<'_> {
let selection = self.body_form_table.selection.unwrap();
let selected_request_index = &self.collections_tree.selected.unwrap();

if let Err(_) = self.delete_form_data(selection.0, selected_request_index.0, selected_request_index.1) {
if let Err(_) = self.delete_form_data(selected_request_index.0, selected_request_index.1, selection.0) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/tui/tui_logic/request/headers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl App<'_> {
let selection = self.headers_table.selection.unwrap();
let selected_request_index = &self.collections_tree.selected.unwrap();

match self.delete_header(selection.0, selected_request_index.0, selected_request_index.1) {
match self.delete_header(selected_request_index.0, selected_request_index.1, selection.0) {
Ok(_) => {}
Err(_) => return
}
Expand Down
2 changes: 1 addition & 1 deletion src/tui/tui_logic/request/query_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl App<'_> {
let selection = self.query_params_table.selection.unwrap();
let selected_request_index = &self.collections_tree.selected.unwrap();

match self.delete_query_param(selection.0, selected_request_index.0, selected_request_index.1) {
match self.delete_query_param(selected_request_index.0, selected_request_index.1, selection.0) {
Ok(_) => {}
Err(_) => return
}
Expand Down

0 comments on commit e3287f2

Please sign in to comment.