Skip to content

Commit

Permalink
Próba uspokojenia type checkera w testach
Browse files Browse the repository at this point in the history
  • Loading branch information
Acors24 committed Nov 13, 2024
1 parent 42aa9a5 commit 8733bdd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions zapisy/apps/theses/assets/components/StudentFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import {
MultiselectFilterDataItem,
} from "@/enrollment/timetable/assets/models";
type MultiSelectFilterWithSelected = {
selected: MultiselectFilterDataItem<number>[];
};
export default Vue.extend({
components: {
MultiSelectFilter,
Expand Down Expand Up @@ -39,9 +43,11 @@ export default Vue.extend({
(selectedOption) => Number(selectedOption.value) === dataItem.value
)
);
multiselectOptions.forEach((option) =>
this.$refs["student-filter"].selected.push(option)
);
const filter = this.$refs["student-filter"] as Vue & MultiSelectFilterWithSelected;
if (filter) {
filter.selected = multiselectOptions;
}
},
methods: {
updateDjangoField: function (selectedIds: number[]) {
Expand Down

0 comments on commit 8733bdd

Please sign in to comment.