From e013376430e29d1906754b462c188b015d03dc7a Mon Sep 17 00:00:00 2001 From: "James A. Overton" Date: Wed, 20 Mar 2024 14:09:49 -0400 Subject: [PATCH] Do not reset view on POST --- src/serve.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/serve.rs b/src/serve.rs index 9eb391b..5c43993 100644 --- a/src/serve.rs +++ b/src/serve.rs @@ -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" {