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/06/07 23:22:57 UTC

[camel-karavan] 01/02: Fix #775 for cloud app

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 9ab9337747ea709e31ecef0c469c319a76fb028b
Author: Marat Gubaidullin <ma...@gmail.com>
AuthorDate: Wed Jun 7 19:21:56 2023 -0400

    Fix #775 for cloud app
---
 .../src/main/webui/src/designer/route/property/DslPropertyField.tsx     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/karavan-app/src/main/webui/src/designer/route/property/DslPropertyField.tsx b/karavan-app/src/main/webui/src/designer/route/property/DslPropertyField.tsx
index ba20f174..fde5ab5e 100644
--- a/karavan-app/src/main/webui/src/designer/route/property/DslPropertyField.tsx
+++ b/karavan-app/src/main/webui/src/designer/route/property/DslPropertyField.tsx
@@ -141,7 +141,7 @@ export class DslPropertyField extends React.Component<Props, State> {
         const newValue = this.state.arrayValues.get(fieldId);
         const property: PropertyMeta = this.props.property;
         let value = this.props.value;
-        if (property.isArray && property.type === 'string') {
+        if (newValue !== undefined && newValue.length > 0 && property.isArray && property.type === 'string') {
             if (value) (value as any).push(newValue)
             else value = [newValue];
         }