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 2022/06/01 18:01:32 UTC
[camel-karavan] branch main updated: Update ComponentParameterField.tsx
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 ee16d42 Update ComponentParameterField.tsx
ee16d42 is described below
commit ee16d42f5b90e7da55104f418062c40afa7d6c7d
Author: Marat Gubaidullin <ma...@gmail.com>
AuthorDate: Wed Jun 1 14:01:29 2022 -0400
Update ComponentParameterField.tsx
---
.../src/designer/route/property/ComponentParameterField.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/karavan-designer/src/designer/route/property/ComponentParameterField.tsx b/karavan-designer/src/designer/route/property/ComponentParameterField.tsx
index 53f9640..7cb5a86 100644
--- a/karavan-designer/src/designer/route/property/ComponentParameterField.tsx
+++ b/karavan-designer/src/designer/route/property/ComponentParameterField.tsx
@@ -218,7 +218,7 @@ export class ComponentParameterField extends React.Component<Props, State> {
id={id} name={id}
value={value?.toString()}
aria-label={id}
- isChecked={value !== undefined ? Boolean(value) === true : Boolean(property.defaultValue) === true}
+ isChecked={value !== undefined ? Boolean(value) === true : property.defaultValue != undefined && property.defaultValue === 'true'}
onChange={e => this.parametersChanged(property.name, !Boolean(value))}/>
)
}
@@ -264,4 +264,4 @@ export class ComponentParameterField extends React.Component<Props, State> {
</FormGroup>
)
}
-}
\ No newline at end of file
+}