Skip to content

Commit

Permalink
Merge pull request #81 from ontodev/fix-78
Browse files Browse the repository at this point in the history
Do not reset view on POST
  • Loading branch information
jamesaoverton authored Mar 20, 2024
2 parents 504fb80 + e013376 commit 783ce24
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -816,8 +816,9 @@ async fn table(
let mut form_map = None;
let columns = get_columns(&table, valve)?;
if request_type == RequestType::POST {
// Override view, which isn't passed in POST. This value will then be picked up below.
view = String::from("form");
if view == "" {
view = String::from("form");
}
let mut new_row = SerdeMap::new();
for column in &columns {
if column != "row_number" {
Expand Down

0 comments on commit 783ce24

Please sign in to comment.