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 20:33:14 UTC

[camel-karavan] branch main updated: Fix #775

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 4a88b026 Fix #775
4a88b026 is described below

commit 4a88b026ba8322d08b07be70a552dc201724b443
Author: Marat Gubaidullin <ma...@gmail.com>
AuthorDate: Wed Jun 7 16:33:05 2023 -0400

    Fix #775
---
 karavan-designer/src/designer/route/property/DslPropertyField.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/karavan-designer/src/designer/route/property/DslPropertyField.tsx b/karavan-designer/src/designer/route/property/DslPropertyField.tsx
index ba20f174..fde5ab5e 100644
--- a/karavan-designer/src/designer/route/property/DslPropertyField.tsx
+++ b/karavan-designer/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];
         }