fix: /user/check-token api not work

This commit is contained in:
Junyan Qin
2025-04-14 13:52:47 +08:00
parent 9e9825a125
commit 2fdb53efc9
3 changed files with 10 additions and 6 deletions

View File

@@ -260,7 +260,7 @@ class ComponentDiscoveryEngine:
def get_components_by_kind(self, kind: str) -> typing.List[Component]:
"""获取指定类型的组件"""
if kind not in self.components:
raise ValueError(f'No components found for kind: {kind}')
return []
return self.components[kind]
def find_components(self, kind: str, component_list: typing.List[Component]) -> typing.List[Component]: