Преглед на файлове

link: fix link with no href (#1612)

Masen Furer преди 1 година
родител
ревизия
bb337be06c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      reflex/components/navigation/link.py

+ 1 - 1
reflex/components/navigation/link.py

@@ -45,7 +45,7 @@ class Link(ChakraComponent):
         Returns:
         Returns:
             Component: The link component
             Component: The link component
         """
         """
-        if props["href"]:
+        if props.get("href"):
             if not len(children):
             if not len(children):
                 raise ValueError("Link without a child will not display")
                 raise ValueError("Link without a child will not display")
         else:
         else: