fix: JSON format vault config is showing in the tag when edit credential (#10384)

* fix issue

* more safe way to btoa
This commit is contained in:
Kent Wang authored and GitHub committed 2026-08-13 02:33:59 +00:00
1 parent 29b2e391fb
commit e09764cd58
1 file changed
+6 -1
@@ -122,7 +122,12 @@ export const ExternalVaultForm = (props: ArgConfigFormProps) => {
provider={provider}
providerCredential={selectedCredentialDoc}
onClose={() => setShowModal(false)}
onComplete={() => onChange(configValue)}
onComplete={() =>
onChange(
// convert the configValue to base64 string to avoid special characters in the configValue
btoa(new TextEncoder().encode(configValue).reduce((data, byte) => data + String.fromCodePoint(byte), '')),
)
}
/>
)}
</>