Trimmed whitespace on upload

This commit is contained in:
Franklin 2023-05-10 12:34:26 -04:00
parent e57afed162
commit 0d785ffef2

View File

@ -206,8 +206,8 @@ pub fn generate_fields_for_project(props: &ProjectFieldsProps) -> Html {
Err(_) => {
// Create location
match create_location(NewLocationPayload {
city: (*location_city_handle).clone(),
district: (*location_district_handle).clone(),
city: (*location_city_handle).clone().trim().to_string(),
district: (*location_district_handle).clone().trim().to_string(),
})
.await
{