Skip to content

Commit

Permalink
Merge pull request #6853 from dasuni-30/fix/20978
Browse files Browse the repository at this point in the history
Fix the update API call failure in outbound provisioning
  • Loading branch information
dasuni-30 authored Sep 25, 2024
2 parents 525f88c + 28df6ca commit d0c5424
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fast-chicken-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/admin.connections.v1": patch
---

Fix the update API call failure in outbound provisioning
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,19 @@ export const CommonPluggableComponentForm: FunctionComponent<CommonPluggableComp
// Check whether the property is not in the metadata.
if (!metadata?.properties?.find(
(meta: CommonPluggableComponentMetaPropertyInterface) => 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(", "));
Expand Down

0 comments on commit d0c5424

Please sign in to comment.