Skip to content
Snippets Groups Projects
Commit 186edb33 authored by Julian's avatar Julian
Browse files

Skip queries until group is loaded fully

parent 71fbf4e0
No related branches found
No related tags found
1 merge request!26Resolve "Adapt to refactored CRUD lists"
Pipeline #172021 failed
......@@ -234,7 +234,8 @@ export default defineComponent({
},
computed: {
readyForQueries() {
return this.internalTimeGrid !== null && this.selectedGroup !== null;
// Non-typesafe check to also handle undefined
return this.internalTimeGrid != null && this.selectedGroup != null && this.selectedGroup.id != null;
},
lessons() {
return this.lessonObjects
......
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