Skip to content
Snippets Groups Projects
Verified Commit c57ffe4e authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Set right IDs in workflow version deprecation API call

#64
parent 559d9ad3
No related branches found
No related tags found
2 merge requests!84Remove development branch,!58Resolve "Switch workflow id and version id in version deprecation API call"
......@@ -103,6 +103,16 @@ function startWorkflow(
report_output_bucket: report_output_bucket,
repository_url: workflowState.workflow.repository_url,
token: workflowState.workflow.token ?? undefined,
mode:
(workflowState.workflow.modes ?? []).length > 0
? {
name: "",
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
entrypoint: workflowState.workflow.modes![0].entrypoint,
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
schema_path: workflowState.workflow.modes![0].schema_path,
}
: undefined,
})
.then(() => {
router.push({
......
......@@ -249,8 +249,8 @@ function updateWorkflow(workflowId: string) {
function deprecateCurrentWorkflowVersion() {
if (props.versionId) {
WorkflowVersionService.workflowVersionDeprecateWorkflowVersion(
props.versionId,
props.workflowId,
props.versionId,
).then((version) => {
if (workflowState.workflow) {
const versionIndex = workflowState.workflow.versions.findIndex(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment