Quellcode durchsuchen

link: fix link with no href (#1612)

Masen Furer vor 1 Jahr
Ursprung
Commit
bb337be06c
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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: