Forced lower case tags
This commit is contained in:
parent
be769e4e3e
commit
54989f3212
2 changed files with 11 additions and 2 deletions
|
|
@ -184,7 +184,8 @@ pub fn setup_page(recipe_id: i64) -> Result<(), JsValue> {
|
|||
|
||||
fn add_tags(recipe_id: i64, tags: String) {
|
||||
spawn_local(async move {
|
||||
let tag_list: Vec<String> = tags.split_whitespace().map(String::from).collect();
|
||||
let tag_list: Vec<String> =
|
||||
tags.split_whitespace().map(str::to_lowercase).collect();
|
||||
if !tag_list.is_empty() {
|
||||
let body = ron_api::Tags {
|
||||
recipe_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue