We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d6b74f commit 3952c52Copy full SHA for 3952c52
src/lib/components/workflow/VersionUpdate.svelte
@@ -82,6 +82,7 @@
82
return;
83
}
84
const oldArgs = workflowTask.args || {};
85
+ originalArgs = JSON.stringify(oldArgs, null, 2);
86
validateArguments(oldArgs);
87
88
@@ -122,8 +123,7 @@
122
123
if (valid) {
124
validationErrors = null;
125
} else {
- originalArgs = JSON.stringify(args, null, 2);
126
- argsToBeFixed = originalArgs;
+ argsToBeFixed = JSON.stringify(args, null, 2);
127
validationErrors = validator.getErrors();
128
129
@@ -135,7 +135,7 @@
135
if (argsToBeFixed) {
136
check();
137
138
- if (validationErrors !== null) {
+ if (!argsToBeFixedValidJson || validationErrors !== null) {
139
140
141
let response = await fetch(
0 commit comments