AykutSarac 3 éve
szülő
commit
ffa5b330fe
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/containers/JsonEditor/index.tsx

+ 1 - 1
src/containers/JsonEditor/index.tsx

@@ -61,7 +61,7 @@ const JsonEditor: React.FC = () => {
         const parsedJson = parseJson(value);
 
         if (settings.autoformat) {
-          setValue(JSON.stringify(JSON.parse(value), null, 2));
+          setValue(JSON.stringify(parsedJson, null, 2));
         } else {
           setValue(value);
         }