fix: query oproepen buiten de template

This commit is contained in:
Joyelle Ndagijimana 2025-05-20 15:18:15 +02:00
parent 62ba67b5b6
commit a88390f46b

View file

@ -12,6 +12,8 @@
path: LearningPath; path: LearningPath;
activeObjectId: string; activeObjectId: string;
}>(); }>();
const learningObjectsQuery = useLearningObjectListForPathQuery(props.path);
</script> </script>
<template> <template>
@ -22,7 +24,7 @@
<v-expansion-panel-text> <v-expansion-panel-text>
<v-lazy> <v-lazy>
<using-query-result <using-query-result
:query-result="useLearningObjectListForPathQuery(props.path)" :query-result="learningObjectsQuery"
v-slot="learningObjects: { data: LearningObject[] }" v-slot="learningObjects: { data: LearningObject[] }"
> >
<template <template