Skip to content

Commit

Permalink
secret-edit-form-incorrect-req-obj
Browse files Browse the repository at this point in the history
  • Loading branch information
cyril-ui-developer authored and openshift-cherrypick-robot committed May 20, 2024
1 parent 58f2837 commit 46e8a74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/public/components/secrets/create-secret.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,8 @@ export const SecretLoadingWrapper = withTranslation()(
if (!secretTypeAbstraction) {
return <LoadingBox />;
}
const fixed = _.reduce(fixedKeys, (acc, k) => ({ ...acc, k: _.get(obj.data, k) }), {});
const fixed = fixedKeys?.reduce((acc, k) => ({ ...acc, [k]: obj.data?.[k] || '' }), {});

return (
<StatusBox {...obj}>
<SecretFormWrapper
Expand Down

0 comments on commit 46e8a74

Please sign in to comment.