Nikolay Suslov 4 anni fa
parent
commit
b3cf18d592
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      public/app.js

+ 1 - 1
public/app.js

@@ -737,7 +737,7 @@ class App {
               //console.log(source);
 
               //var source = (typeof(sourceToEdit) =="object") ? JSON.stringify(sourceToEdit): sourceToEdit;
-              if (file.includes('_json')) {
+              if (file.includes('_json') && (typeof source !== 'object')) {
                 source = (typeof JSON.parse(source) == 'object') ? JSON.stringify(JSON.parse(source), null, '\t') : source 
                 //source = source;//JSON.stringify(source, null, '\t');
               }