1
0
Fork 0

fix kv secret view when viewing json data.

This commit is contained in:
Kitteh 2021-05-25 10:49:23 +01:00
parent 4a3ac4f335
commit 3aee334fde

View file

@ -23,11 +23,7 @@ export class KVSecretVew extends Component<KVSecretViewProps, unknown> {
}
if (isMultiLevelJSON) {
const jsonText = JSON.stringify(
sortedObjectMap(secretsMap as unknown as Record<string, unknown>),
null,
4,
);
const jsonText = JSON.stringify(Object.fromEntries(secretsMap), null, 4);
const highlightedJson = Prism.highlight(jsonText, Prism.languages.json, "json");
return (
<pre