Ver código fonte

link: fix link with no href (#1612)

Masen Furer 1 ano atrás
pai
commit
bb337be06c
1 arquivos alterados com 1 adições e 1 exclusões
  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: