Skip to content

Commit

Permalink
Reading the cacert field value as undefined in case it's empty
Browse files Browse the repository at this point in the history
Reference: https://issues.redhat.com/browse/MTV-1653

Fix a bug in which in case of an empty/undefined cacert field value,
read it as undefined and not as 'undefined' (the result of
(string(undefined) expr)

Signed-off-by: Sharon Gratch <[email protected]>
  • Loading branch information
sgratch committed Dec 30, 2024
1 parent e35e84a commit a19c2a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const CertificateUpload: FC<CertificateUploadProps> = ({
<FetchCertificateModal
url={url}
handleSave={(v) => onTextChange(null, v)}
existingCert={String(value)}
existingCert={value ? String(value) : undefined}
/>,
);
};
Expand Down

0 comments on commit a19c2a3

Please sign in to comment.