From bb337be06c132bb81a07cbd83aa0885d1c8ae8ba Mon Sep 17 00:00:00 2001 From: Masen Furer Date: Thu, 17 Aug 2023 13:32:53 -0700 Subject: [PATCH] link: fix link with no href (#1612) --- reflex/components/navigation/link.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: