Skip to content

Commit

Permalink
fix: double backslash in variable value (AutomaApp#1608)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kholid060 committed Jan 12, 2024
1 parent 3d6695f commit b0e4f6b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/newtab/logs/LogsVariables.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions src/newtab/pages/settings/SettingsBackup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ async function backupWorkflows() {
return acc;
}, []);
const payload = {
isProtected: state.encrypt,
workflows: JSON.stringify(workflows),
Expand Down
2 changes: 1 addition & 1 deletion src/stores/workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const defaultWorkflow = (data = null, options = {}) => {
settings: {
publicId: '',
blockDelay: 0,
saveLog: false,
saveLog: true,
debugMode: false,
restartTimes: 3,
notification: true,
Expand Down

0 comments on commit b0e4f6b

Please sign in to comment.