link: fix link with no href (#1612)

This commit is contained in:
Masen Furer 2023-08-17 13:32:53 -07:00 committed by GitHub
parent 98fae89319
commit bb337be06c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: