This is an automated email from the ASF dual-hosted git repository. marat pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-karavan.git
commit 51f1d398e660f17403dbcf7150cffc819ff38dae Author: Marat Gubaidullin <ma...@talismancloud.io> AuthorDate: Wed Feb 14 10:50:10 2024 -0500 Incoming navigation for #1109 --- karavan-core/src/core/api/TopologyUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/karavan-core/src/core/api/TopologyUtils.ts b/karavan-core/src/core/api/TopologyUtils.ts index 3d8ba1fd..949fe507 100644 --- a/karavan-core/src/core/api/TopologyUtils.ts +++ b/karavan-core/src/core/api/TopologyUtils.ts @@ -57,7 +57,7 @@ export class TopologyUtils { const uri = (element as any).uri; const component = ComponentApi.findByName(uri); return component !== undefined && - (TopologyUtils.isComponentInternal(component.component.label) || TopologyUtils.hasInternalUri(element)); + (TopologyUtils.isComponentInternal(component.component.label)); } static getConnectorType = (element: CamelElement): 'component' | 'kamelet' => { @@ -99,7 +99,7 @@ export class TopologyUtils { } } } - return result; + return result.endsWith("&") ? result.substring(0, result.length - 1) : result; } static isComponentInternal = (label: string): boolean => {