diff --git a/src/modules/components/Entry.tsx b/src/modules/components/Entry.tsx index 408ab09c..13b4e1af 100644 --- a/src/modules/components/Entry.tsx +++ b/src/modules/components/Entry.tsx @@ -35,7 +35,11 @@ const DUMP_OPTIONS: jsyaml.DumpOptions = { replacer: (key, value) => { if (Convert.isBase64(value)) { try { - return load(window.atob(value)); + let decodedVal = window.atob(value); + if (decodedVal.startsWith("-----BEGIN")) { + return decodedVal; + } + return load(decodedVal); } catch (e) { return value; }