link: fix link with no href (#1612)
This commit is contained in:
parent
98fae89319
commit
bb337be06c
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user