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 17:59:20 UTC
[camel-karavan] branch main updated: Fix #357
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 30a4f9e Fix #357
30a4f9e is described below
commit 30a4f9e8dabac4bb87743ea3f4ca61821c056421
Author: Marat Gubaidullin <ma...@gmail.com>
AuthorDate: Wed Jun 1 13:59:17 2022 -0400
Fix #357
---
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 4bb6693..6b03100 100644
--- a/karavan-designer/src/designer/route/property/DslPropertyField.tsx
+++ b/karavan-designer/src/designer/route/property/DslPropertyField.tsx
@@ -181,7 +181,7 @@ export class DslPropertyField extends React.Component<Props, State> {
}
getSwitch = (property: PropertyMeta, value: any) => {
- const isChecked = value != undefined ? Boolean(value) : Boolean(property.defaultValue);
+ const isChecked = value != undefined ? Boolean(value) : Boolean(property.defaultValue != undefined && property.defaultValue === 'true');
return (
<Switch
id={property.name} name={property.name}