File tree Expand file tree Collapse file tree
client/src/components/Workflow/Editor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1124,6 +1124,11 @@ export default {
11241124 const versions = await getVersions (this .id );
11251125 this .versions = versions;
11261126
1127+ // If version is not defined, set it to the latest version
1128+ if (this .version === undefined || this .version === null ) {
1129+ this .version = versions[versions .length - 1 ].version ;
1130+ }
1131+
11271132 await this ._loadCurrent (this .id , data .version );
11281133 } catch (response) {
11291134 this .onWorkflowError (" Saving workflow failed..." , response, {
Original file line number Diff line number Diff line change 2222 <i >(switch to latest)</i >
2323 </GLink >
2424 <i v-else > (latest version)</i >
25- <WorkflowVersionSelector :version =" version" :versions =" versions" @onVersion =" onVersion" />
25+ <WorkflowVersionSelector
26+ v-if =" version !== null && version !== undefined"
27+ :version =" version"
28+ :versions =" versions"
29+ @onVersion =" onVersion" />
2630 </div >
2731 <div v-if =" hasParameters" id =" workflow-parameters-area" class =" mt-2" >
2832 <b >Parameters</b >
You can’t perform that action at this time.
0 commit comments