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 6ccf34e9 Fix #1304
6ccf34e9 is described below

commit 6ccf34e9a6a636c9e072e75c2d5d06cc3030439e
Author: Marat Gubaidullin <[email protected]>
AuthorDate: Mon Jul 15 12:15:56 2024 -0400

    Fix #1304
---
 karavan-core/src/core/api/CamelDefinitionYaml.ts | 2 --
 karavan-core/test/errorHandler1.yaml             | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/karavan-core/src/core/api/CamelDefinitionYaml.ts 
b/karavan-core/src/core/api/CamelDefinitionYaml.ts
index 309d7694..d4a5ee55 100644
--- a/karavan-core/src/core/api/CamelDefinitionYaml.ts
+++ b/karavan-core/src/core/api/CamelDefinitionYaml.ts
@@ -173,8 +173,6 @@ export class CamelDefinitionYaml {
             delete newValue.dslName;
             delete newValue[stepNameField];
 
-            if (stepName === 'errorHandler') { delete newValue.id} // until 
https://issues.apache.org/jira/browse/CAMEL-20818
-
             if (
                 value.inArray &&
                 !value.inSteps &&
diff --git a/karavan-core/test/errorHandler1.yaml 
b/karavan-core/test/errorHandler1.yaml
index 9f6eaa26..e65378ab 100644
--- a/karavan-core/test/errorHandler1.yaml
+++ b/karavan-core/test/errorHandler1.yaml
@@ -19,6 +19,7 @@
 - routeConfiguration:
     id: routeConfiguration-1
     errorHandler:
+      id: errorHandler-1
       deadLetterChannel:
         id: deadLetterChannel-1
         deadLetterUri: log:dlq

Reply via email to