Commit e821c597 authored by ibooking-sigurd's avatar ibooking-sigurd
Browse files

Refactor last code smell - fix parameters in abstracted method in myathletes.js.

No code smells now, and the app has not lost functionality.
parent 51e4e409
Pipeline #129781 failed with stages
in 4 minutes and 2 seconds
......@@ -63,7 +63,7 @@ function createDiet(templateFile, name) {
return aDiet;
}
async function createDietFiles(dietInstances, templateDiet) {
async function createDietFiles(dietInstances, templateDiet, athlete, assignBtn, selectionClone, tabPanel) {
for (let diet of dietInstances.results) {
let dietURL = diet.diet
let userURL = diet.user;
......@@ -143,7 +143,7 @@ async function displayFiles() {
tabPanel.prepend(assignBtn);
tabPanel.prepend(dietSelection);
createDietFiles(dietInstances, templateDiet);
createDietFiles(dietInstances, templateDiet, athlete, assignBtn, selectionClone, tabPanel);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment