From 70f1efc6411d6aa55f9741b02b21ae3a9d38cd03 Mon Sep 17 00:00:00 2001 From: Dasuni Geeganage Date: Mon, 2 Sep 2024 11:43:36 +0530 Subject: [PATCH 1/3] Fix the update API call failure in outbound provisioning --- .../components/common-pluggable-component-form.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/features/admin.connections.v1/components/edit/forms/components/common-pluggable-component-form.tsx b/features/admin.connections.v1/components/edit/forms/components/common-pluggable-component-form.tsx index e1480bec0c3..6b86ce9295b 100644 --- a/features/admin.connections.v1/components/edit/forms/components/common-pluggable-component-form.tsx +++ b/features/admin.connections.v1/components/edit/forms/components/common-pluggable-component-form.tsx @@ -473,7 +473,19 @@ export const CommonPluggableComponentForm: FunctionComponent meta.key === property.key)) { - values.push(property.key + "=" + property.value); + + // Check whether the property is not in the subproperties of metadata. + metadata?.properties.forEach((meta: CommonPluggableComponentMetaPropertyInterface) => { + meta?.subProperties.forEach((subProperties: CommonPluggableComponentMetaPropertyInterface) => { + + // Check whether the property is not in the subproperties metadata. + if (!meta?.subProperties?.find( + (subProperties: CommonPluggableComponentMetaPropertyInterface) => + subProperties.key === property.key)) { + values.push(subProperties.key + "=" + property.value); + } + }); + }); } }); setCustomProperties(values.join(", ")); From 06639c2d59fac47ac57a9c10a341af6c711dd461 Mon Sep 17 00:00:00 2001 From: Dasuni Geeganage Date: Mon, 2 Sep 2024 11:44:11 +0530 Subject: [PATCH 2/3] Add changeset --- .changeset/fast-chicken-live.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/fast-chicken-live.md diff --git a/.changeset/fast-chicken-live.md b/.changeset/fast-chicken-live.md new file mode 100644 index 00000000000..1686bb521fd --- /dev/null +++ b/.changeset/fast-chicken-live.md @@ -0,0 +1,5 @@ +--- +"@wso2is/admin.connections.v1": patch +--- + +Fix the update API call failure in outbound provisioning From 28df6ca0d5d88bf28b223340ea80e0a7a353cde1 Mon Sep 17 00:00:00 2001 From: Dasuni Geeganage Date: Mon, 2 Sep 2024 11:52:28 +0530 Subject: [PATCH 3/3] Fix ESLint issue --- .../edit/forms/components/common-pluggable-component-form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/admin.connections.v1/components/edit/forms/components/common-pluggable-component-form.tsx b/features/admin.connections.v1/components/edit/forms/components/common-pluggable-component-form.tsx index 6b86ce9295b..f2daffc7759 100644 --- a/features/admin.connections.v1/components/edit/forms/components/common-pluggable-component-form.tsx +++ b/features/admin.connections.v1/components/edit/forms/components/common-pluggable-component-form.tsx @@ -480,7 +480,7 @@ export const CommonPluggableComponentForm: FunctionComponent + (subProperties: CommonPluggableComponentMetaPropertyInterface) => subProperties.key === property.key)) { values.push(subProperties.key + "=" + property.value); }