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 c4028cb5b662ec12ddd8289f68204d245f8f153c
Author: Marat Gubaidullin <ma...@talismancloud.io>
AuthorDate: Mon Apr 1 20:23:29 2024 -0400

    Improvements
---
 karavan-core/src/core/api/TopologyUtils.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/karavan-core/src/core/api/TopologyUtils.ts 
b/karavan-core/src/core/api/TopologyUtils.ts
index 73821493..db76667e 100644
--- a/karavan-core/src/core/api/TopologyUtils.ts
+++ b/karavan-core/src/core/api/TopologyUtils.ts
@@ -150,9 +150,9 @@ export class TopologyUtils {
         const result:TopologyRestNode[] = [];
         integration.forEach(i => {
             const filename = i.metadata.name;
-            const uris: string[] = [];
             const routes = i.spec.flows?.filter(flow => flow.dslName === 
'RestDefinition');
             routes?.forEach((rest: RestDefinition) => {
+                const uris: string[] = [];
                 rest?.get?.forEach((d: GetDefinition) => {
                     if (d.to) uris.push(d.to);
                 });

Reply via email to