Skip to content

Commit

Permalink
fix(frender-macros): key in rsx prop should not apply into_prop_value
Browse files Browse the repository at this point in the history
  • Loading branch information
EqualMa committed Mar 1, 2022
1 parent 0712217 commit db2e333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/frender-macros/src/rsx_to_tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl ToTokens for RsxElement {

let key_value = if let Some(key) = key {
let span = key.name.span();
let value = &key.value;
let value = &key.value.value;
quote_spanned!(span=> Some(::frender::AsKey::as_key(&#value)))
} else {
quote_spanned!(component_type_span=> None)
Expand Down

0 comments on commit db2e333

Please sign in to comment.