File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
components/Workflow/Editor Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1205,6 +1205,11 @@ export default {
12051205 await Vue .nextTick ();
12061206 this .hasChanges = has_changes;
12071207 },
1208+ /**
1209+ * Fetches and loads the workflow data for the given id and version into the editor.
1210+ * @param {string} id - The workflow ID
1211+ * @param {number|undefined} version - The workflow version number
1212+ */
12081213 async _loadCurrent (id , version ) {
12091214 if (! this .isNewTempWorkflow ) {
12101215 await this .resetStores ();
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export default {
4444 this .skipNextReload = false ;
4545 }
4646
47- this .version = Query .get (" version" );
47+ this .version = parseInt ( Query .get (" version" ), 10 );
4848 this .storedWorkflowId = Query .get (" id" );
4949 this .workflowId = Query .get (" workflow_id" );
5050 const workflowId = this .workflowId || this .storedWorkflowId ;
You can’t perform that action at this time.
0 commit comments