Skip to content
Snippets Groups Projects

Fix front-end tests + refactoring

Merged Fanna Lautenbach requested to merge TMSS-2516 into master
All threads resolved!
Files
2
@@ -300,19 +300,6 @@ export class SchedulingUnitCreate extends Component {
}
}
getTaskTemplateForTask(task) {
let taskTemplate = this.taskTemplates.filter(t => t.name === task.specifications_template.name)
if (taskTemplate[0] && taskTemplate.length > 1) {
taskTemplate = this.taskTemplates.filter(t => t.version === task.specifications_template.version)
}
if (!taskTemplate[0]) {
throw new TypeError("Cannot load task for SU since there is no task template found for task '"
+ task.specifications_template.name + "' version: " + task.specifications_template.version)
}
return taskTemplate[0];
}
/**
* This is the callback method to be passed to the JSON editor.
* JEditor will call this function when there is change in the editor.
Loading