Skip to content

Commit

Permalink
Merge pull request ManageIQ#8265 from GilbertCherrie/fix_ibm_cloud_au…
Browse files Browse the repository at this point in the history
…th_issue
  • Loading branch information
jrafanie authored May 19, 2022
2 parents 9a27241 + 61dc5f6 commit f885bcf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/javascript/components/provider-form/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ const ProviderForm = ({
const { endpoints: _endpoints = { default: {} }, authentications: _authentications = {}, ...rest } = pick(_data, toSubmit);
// Convert endpoints and authentications back to an array
const endpoints = Object.keys(_endpoints).map((key) => ({ role: key, ..._endpoints[key] }));
const authentications = Object.keys(_authentications).map((key) => ({ authtype: key, ..._authentications[key] }));
let authentications = Object.keys(_authentications).map((key) => ({ authtype: key, ..._authentications[key] }));

if (authentications.length === 0) {
authentications = Object.keys(initialValues.authentications).map((key) => ({ authtype: key }));
}

// Construct the full form data with all the necessary items
const data = {
Expand Down

0 comments on commit f885bcf

Please sign in to comment.