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 2023/08/01 22:43:22 UTC

[camel-karavan] 01/02: Fixed #841

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 f9972b0e0157aeddcca5378d9e7b50da9b4ee239
Author: Marat Gubaidullin <ma...@gmail.com>
AuthorDate: Tue Aug 1 18:42:08 2023 -0400

    Fixed #841
---
 .../main/webui/src/designer/route/property/ComponentParameterField.tsx  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/karavan-web/karavan-app/src/main/webui/src/designer/route/property/ComponentParameterField.tsx b/karavan-web/karavan-app/src/main/webui/src/designer/route/property/ComponentParameterField.tsx
index ca1f6a0d..e0a6f99f 100644
--- a/karavan-web/karavan-app/src/main/webui/src/designer/route/property/ComponentParameterField.tsx
+++ b/karavan-web/karavan-app/src/main/webui/src/designer/route/property/ComponentParameterField.tsx
@@ -139,7 +139,7 @@ export class ComponentParameterField extends React.Component<Props, State> {
         const internalUris = CamelUi.getInternalRouteUris(this.props.integration, componentName, false);
         const uris: string [] = [];
         uris.push(...internalUris);
-        if (value.length > 0 && !uris.includes(value)) {
+        if (value && value.length > 0 && !uris.includes(value)) {
             uris.unshift(value);
         }
         if (uris && uris.length > 0) {