From 3aee334fde7055da9c91c5ddd88fb085bfcdbb80 Mon Sep 17 00:00:00 2001 From: Kitteh Date: Tue, 25 May 2021 10:49:23 +0100 Subject: [PATCH] fix kv secret view when viewing json data. --- src/pages/Secrets/KeyValue/KeyValueSecret.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pages/Secrets/KeyValue/KeyValueSecret.tsx b/src/pages/Secrets/KeyValue/KeyValueSecret.tsx index 7d1e511..c9f1a89 100644 --- a/src/pages/Secrets/KeyValue/KeyValueSecret.tsx +++ b/src/pages/Secrets/KeyValue/KeyValueSecret.tsx @@ -23,11 +23,7 @@ export class KVSecretVew extends Component { } if (isMultiLevelJSON) { - const jsonText = JSON.stringify( - sortedObjectMap(secretsMap as unknown as Record), - null, - 4, - ); + const jsonText = JSON.stringify(Object.fromEntries(secretsMap), null, 4); const highlightedJson = Prism.highlight(jsonText, Prism.languages.json, "json"); return (