Skip to content

Commit

Permalink
fix: update component factory
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristoGrab committed Jan 24, 2025
1 parent a2262a9 commit b8287d6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2072,7 +2072,11 @@ def create_request_option(
model: RequestOptionModel, config: Config, **kwargs: Any
) -> RequestOption:
inject_into = RequestOptionType(model.inject_into.value)
return RequestOption(field_name=model.field_name, inject_into=inject_into, parameters={})
field_path: Optional[List[Union[InterpolatedString, str]]] = model.field_path # type: ignore
field_name = model.field_name if model.field_name else None
return RequestOption(
field_name=field_name, field_path=field_path, inject_into=inject_into, parameters={}
)

def create_record_selector(
self,
Expand Down

0 comments on commit b8287d6

Please sign in to comment.