Jelajahi Sumber

link: fix link with no href (#1612)

Masen Furer 1 tahun lalu
induk
melakukan
bb337be06c
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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: