Commit c2759fcf authored by trfloria's avatar trfloria
Browse files

fixed lecture dropdown

parent 600cfc5b
......@@ -69,12 +69,12 @@ 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: i + 1, 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: i + 1, 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;
......@@ -171,7 +171,6 @@ export default class studydocList {
onchange: event => {
this.lecture = event.target.value;
this.updateFilter();
console.log(this.lecture);
},
}),
]),
......
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