Commit 9493bb2d authored by Elias Asikainen's avatar Elias Asikainen
Browse files

formatting finished dropdown menus

parent c2759fcf
......@@ -69,12 +69,18 @@ export default class studydocList {
const data = [];
if (this.filter.department.itet || !this.filter.department.mavt) {
for (let i = 0; i < subjects.itet[this.semester - 1].length; i += 1) {
data.push({ id: subjects.itet[this.semester - 1][i], name: subjects.itet[this.semester - 1][i] });
data.push({
id: subjects.itet[this.semester - 1][i],
name: subjects.itet[this.semester - 1][i],
});
}
}
if (this.filter.department.mavt || !this.filter.department.itet) {
for (let i = 0; i < subjects.mavt[this.semester - 1].length; i += 1) {
data.push({ id: subjects.mavt[this.semester - 1][i], name: subjects.mavt[this.semester - 1][i] });
data.push({
id: subjects.mavt[this.semester - 1][i],
name: subjects.mavt[this.semester - 1][i],
});
}
}
return data;
......
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