mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-18 14:48:26 +00:00
fix the component macro when the function takes a single argument
This commit is contained in:
parent
bcbb647d02
commit
8d783490a0
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ impl Parse for ComponentBody {
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
let has_extra_args = item_fn.sig.inputs.len() > 1;
|
let has_extra_args = !item_fn.sig.inputs.is_empty();
|
||||||
|
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
item_fn,
|
item_fn,
|
||||||
|
|
Loading…
Add table
Reference in a new issue