fix: Add check for 'set_event_manager' method in custom_component before calling it (#4668)
Add check for 'set_event_manager' method in custom_component before calling it
This commit is contained in:
parent
95779c8cef
commit
9ec66cdb13
1 changed files with 2 additions and 1 deletions
|
|
@ -490,6 +490,7 @@ class Vertex:
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
custom_component = self.custom_component
|
custom_component = self.custom_component
|
||||||
|
if hasattr(self.custom_component, "set_event_manager"):
|
||||||
self.custom_component.set_event_manager(event_manager)
|
self.custom_component.set_event_manager(event_manager)
|
||||||
custom_params = initialize.loading.get_params(self.params)
|
custom_params = initialize.loading.get_params(self.params)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue