centralizing logic in the formstate
This commit is contained in:
@@ -124,6 +124,8 @@ pub async fn revert(
|
||||
form_state.table_name
|
||||
))?;
|
||||
|
||||
form_state.update_from_response(&response.data);
|
||||
// FIX: Pass the current position as the second argument
|
||||
form_state.update_from_response(&response.data, form_state.current_position);
|
||||
Ok("Changes discarded, reloaded last saved version".to_string())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user