Explorar o código

link: fix link with no href (#1612)

Masen Furer hai 1 ano
pai
achega
bb337be06c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      reflex/components/navigation/link.py

+ 1 - 1
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: