diff --git a/karavan-designer/src/designer/beans/BeanProperties.tsx b/karavan-designer/src/designer/beans/BeanProperties.tsx index fdb73d2af16..455291c435f 100644 --- a/karavan-designer/src/designer/beans/BeanProperties.tsx +++ b/karavan-designer/src/designer/beans/BeanProperties.tsx @@ -73,7 +73,7 @@ export function BeanProperties (props: Props) { function onBeanPropertyUpdate () { if (selectedStep) { - const bean = CamelUtil.cloneBean(selectedStep); + const bean = CamelUtil.cloneBean(selectedStep as RegistryBeanDefinition); const beanProperties: any = {}; properties.forEach((p: any) => beanProperties[p[0]] = p[1]); bean.properties = beanProperties; @@ -83,7 +83,7 @@ export function BeanProperties (props: Props) { function beanFieldChanged (fieldId: string, value: string) { if (selectedStep) { - const bean = CamelUtil.cloneBean(selectedStep); + const bean = CamelUtil.cloneBean(selectedStep as RegistryBeanDefinition); (bean as any)[fieldId] = value; props.onChange(bean); } @@ -137,7 +137,7 @@ export function BeanProperties (props: Props) { function cloneBean () { if (selectedStep) { - const bean = CamelUtil.cloneBean(selectedStep); + const bean = CamelUtil.cloneBean(selectedStep as RegistryBeanDefinition); bean.uuid = uuidv4(); props.onClone(bean); } diff --git a/karavan-designer/src/designer/beans/BeansDesigner.tsx b/karavan-designer/src/designer/beans/BeansDesigner.tsx index 64bac96fe27..8cd99f254a8 100644 --- a/karavan-designer/src/designer/beans/BeansDesigner.tsx +++ b/karavan-designer/src/designer/beans/BeansDesigner.tsx @@ -49,7 +49,7 @@ export function BeansDesigner() { } function deleteBean() { - const i = CamelDefinitionApiExt.deleteBeanFromIntegration(integration, selectedStep); + const i = CamelDefinitionApiExt.deleteBeanFromIntegration(integration, selectedStep as RegistryBeanDefinition); setIntegration(i, false); setShowDeleteConfirmation(false); setSelectedStep(undefined); diff --git a/karavan-designer/src/designer/kamelet/KameletDesigner.tsx b/karavan-designer/src/designer/kamelet/KameletDesigner.tsx index dd889b92d34..c235ef9b48f 100644 --- a/karavan-designer/src/designer/kamelet/KameletDesigner.tsx +++ b/karavan-designer/src/designer/kamelet/KameletDesigner.tsx @@ -52,7 +52,7 @@ export function KameletDesigner() { } function deleteBean() { - const i = CamelDefinitionApiExt.deleteBeanFromIntegration(integration, selectedStep); + const i = CamelDefinitionApiExt.deleteBeanFromIntegration(integration, selectedStep as RegistryBeanDefinition); setIntegration(i, false); setShowDeleteConfirmation(false); setSelectedStep(undefined);