We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 972c275 commit ff65483Copy full SHA for ff65483
src/reactpy_router/components.py
@@ -48,7 +48,7 @@ def _link(attributes: dict[str, Any], *children: Any) -> VdomDict:
48
class_name = " ".join([attributes.pop("class_name"), class_name])
49
if "href" in attributes and "to" not in attributes:
50
attributes["to"] = attributes.pop("href")
51
- if "to" not in attributes:
+ if "to" not in attributes: # pragma: no cover
52
raise ValueError("The `to` attribute is required for the `Link` component.")
53
to = attributes.pop("to")
54
0 commit comments