This commit is contained in:
Kezi Olio 2021-02-21 23:20:23 +01:00
parent a7f61d741b
commit e08b113db4
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ impl Component {
})
} else if v.get("text").is_some() {
Component::Text(TextComponent::from_value(v, modifier))
} else if let Some(translate)=v.get("translate") {
} else if let Some(translate) = v.get("translate") {
let translate_key = translate.as_str().unwrap_or_default();
if let Some(serde_json::Value::Array(args)) = v.get("with") {
// TODO: recursively build components, avoid throwing away all but "text"