Forráskód Böngészése

link: fix link with no href (#1612)

Masen Furer 1 éve
szülő
commit
bb337be06c
1 módosított fájl, 1 hozzáadás és 1 törlés
  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: