Fix validate event (#338)
This commit is contained in:
parent
a4ac2979c8
commit
1c20f4357c
@ -157,9 +157,10 @@ class Component(Base, ABC):
|
|||||||
Raises:
|
Raises:
|
||||||
ValueError: If the value is not a valid event chain.
|
ValueError: If the value is not a valid event chain.
|
||||||
"""
|
"""
|
||||||
# If it's already an event chain, return it.
|
# If it's a custom component and var, return it.
|
||||||
if isinstance(value, Var):
|
if isinstance(self, CustomComponent):
|
||||||
return value
|
if isinstance(value, Var):
|
||||||
|
return value
|
||||||
|
|
||||||
arg = self.get_controlled_value()
|
arg = self.get_controlled_value()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user