diff --git a/django_unicorn/views/action_parsers/call_method.py b/django_unicorn/views/action_parsers/call_method.py index a2a373de..f33936cb 100644 --- a/django_unicorn/views/action_parsers/call_method.py +++ b/django_unicorn/views/action_parsers/call_method.py @@ -169,7 +169,7 @@ def _call_method_name(component: UnicornView, method_name: str, args: Tuple[Any] elif argument in kwargs: parsed_kwargs[argument] = cast_value(type_hint, kwargs[argument]) - else: + elif len(args) > len(parsed_args): parsed_args.append(cast_value(type_hint, args[len(parsed_args)])) elif argument in kwargs: parsed_kwargs[argument] = kwargs[argument]