Browse Source

fix: double backslash in variable value (#1608)

Ahmad Kholid 1 year ago
parent
commit
b0e4f6b84e

+ 3 - 1
src/components/newtab/logs/LogsVariables.vue

@@ -29,7 +29,9 @@
             readonly
           />
           <ui-input
-            :model-value="JSON.stringify(varValue)"
+            :model-value="
+              typeof varValue === 'string' ? varValue : JSON.stringify(varValue)
+            "
             label="Value"
             class="w-full"
             placeholder="EMPTY"

+ 1 - 0
src/newtab/pages/settings/SettingsBackup.vue

@@ -336,6 +336,7 @@ async function backupWorkflows() {
 
       return acc;
     }, []);
+
     const payload = {
       isProtected: state.encrypt,
       workflows: JSON.stringify(workflows),

+ 1 - 1
src/stores/workflow.js

@@ -47,7 +47,7 @@ const defaultWorkflow = (data = null, options = {}) => {
     settings: {
       publicId: '',
       blockDelay: 0,
-      saveLog: false,
+      saveLog: true,
       debugMode: false,
       restartTimes: 3,
       notification: true,