mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-12 11:44:45 -04:00
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:
1 parent
29b2e391fb
commit
e09764cd58
1 file changed
+6
-1
+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), '')),
|
||||
)
|
||||
}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
|
||||
Reference in new issue
Block a user