You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ma...@apache.org on 2024/06/19 17:54:43 UTC
(camel-karavan) branch main updated: Fix #1322
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
The following commit(s) were added to refs/heads/main by this push:
new 9f46b270 Fix #1322
9f46b270 is described below
commit 9f46b270c36b2dec086f74bdb59cce25642e817a
Author: Marat Gubaidullin <ma...@talismancloud.io>
AuthorDate: Wed Jun 19 13:54:34 2024 -0400
Fix #1322
---
karavan-core/src/core/api/TopologyUtils.ts | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/karavan-core/src/core/api/TopologyUtils.ts b/karavan-core/src/core/api/TopologyUtils.ts
index 39045fc1..4d0b22e0 100644
--- a/karavan-core/src/core/api/TopologyUtils.ts
+++ b/karavan-core/src/core/api/TopologyUtils.ts
@@ -37,7 +37,6 @@ import {
import { ComponentApi } from './ComponentApi';
import { CamelDefinitionApiExt } from './CamelDefinitionApiExt';
import { CamelDisplayUtil } from './CamelDisplayUtil';
-import { CamelMetadataApi } from '../model/CamelMetadata';
import { CamelUtil } from './CamelUtil';
const outgoingDefinitions: string[] = ['ToDefinition', 'KameletDefinition', 'ToDynamicDefinition', "PollEnrichDefinition", "EnrichDefinition", "WireTapDefinition", "SagaDefinition"];
@@ -240,7 +239,12 @@ export class TopologyUtils {
const type = TopologyUtils.isElementInternalComponent(e) ? 'internal' : 'external';
const connectorType = TopologyUtils.getConnectorType(e);
const uniqueUri = TopologyUtils.getUniqueUri(e);
- result.push(new TopologyOutgoingNode(id, type, connectorType, route.id, title, filename, e, uniqueUri));
+ if (
+ connectorType !== 'kamelet' ||
+ CamelUtil.getKamelet(e)?.metadata.labels['camel.apache.org/kamelet.type'] !== 'action'
+ ) {
+ result.push(new TopologyOutgoingNode(id, type, connectorType, route.id, title, filename, e, uniqueUri));
+ }
})
})