Skip to content
Snippets Groups Projects
Commit 5fd7d955 authored by ibooking-sigurd's avatar ibooking-sigurd
Browse files

Fix small bug in diet.js (add "let" in "for-of-loop").

parent a5203e40
No related branches found
No related tags found
No related merge requests found
......@@ -152,7 +152,7 @@ async function retrieveDiet(id) {
// adding mealtype instances
let mealtypeInstances = [];
let mealtypeInstancesTypes = formData.getAll("type");
for (value of mealtypeInstancesTypes) {
for (let value of mealtypeInstancesTypes) {
mealtypeInstances.push({
mealtype: `${HOST}/api/mealtypes/${value}/`,
});
......
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