fix kv secret view when viewing json data.
This commit is contained in:
parent
4a3ac4f335
commit
3aee334fde
|
@ -23,11 +23,7 @@ export class KVSecretVew extends Component<KVSecretViewProps, unknown> {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isMultiLevelJSON) {
|
if (isMultiLevelJSON) {
|
||||||
const jsonText = JSON.stringify(
|
const jsonText = JSON.stringify(Object.fromEntries(secretsMap), null, 4);
|
||||||
sortedObjectMap(secretsMap as unknown as Record<string, unknown>),
|
|
||||||
null,
|
|
||||||
4,
|
|
||||||
);
|
|
||||||
const highlightedJson = Prism.highlight(jsonText, Prism.languages.json, "json");
|
const highlightedJson = Prism.highlight(jsonText, Prism.languages.json, "json");
|
||||||
return (
|
return (
|
||||||
<pre
|
<pre
|
||||||
|
|
Loading…
Reference in a new issue