diff --git a/reflex/components/navigation/link.py b/reflex/components/navigation/link.py index dab946a8c..1032f4028 100644 --- a/reflex/components/navigation/link.py +++ b/reflex/components/navigation/link.py @@ -45,7 +45,7 @@ class Link(ChakraComponent): Returns: Component: The link component """ - if props["href"]: + if props.get("href"): if not len(children): raise ValueError("Link without a child will not display") else: