Skip to content

Commit 9ab8abb

Browse files
Merge pull request #21711 from ahmedhamidawan/fix_worfklow_editor_version_edit
[25.1] Fix route to workflow editor with version does not load expected version
2 parents 3bd66cf + a85b062 commit 9ab8abb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

client/src/components/Workflow/Editor/Index.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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();

client/src/entry/analysis/modules/WorkflowEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)