Skip to content

Commit

Permalink
fix(catalog): Avoid adding a doFinally when already exists
Browse files Browse the repository at this point in the history
Follow up of: KaotoIO#398 (comment)

Fixes: KaotoIO#334
  • Loading branch information
lordrip committed Nov 22, 2023
1 parent 732220d commit 3305f78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui/src/models/camel/camel-route-resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ export class CamelRouteResource implements CamelResource, BeansAwareResource {
if (!definitionKeys.includes('otherwise')) {
specialChildren.choice.push('otherwise');
}
if (!definitionKeys.includes('doTry')) {
specialChildren.doTry.push('doTry');
if (!definitionKeys.includes('doFinally')) {
specialChildren.doTry.push('doFinally');
}

/**
Expand Down

0 comments on commit 3305f78

Please sign in to comment.