Skip to content

Commit 7581aa2

Browse files
committed
wrap viewLookup fcn
1 parent 1e6c8bd commit 7581aa2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/studio-ui/src/views/BrowseView.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</div>
1313

1414
<div v-else-if="courseId">
15-
<course-information :course-id="courseId" :view-lookup-function="allCourses.getView" :edit-mode="'full'">
15+
<course-information :course-id="courseId" :view-lookup-function="viewLookupFunction" :edit-mode="'full'">
1616
<template #actions>&nbsp;</template>
1717
</course-information>
1818
</div>
@@ -36,6 +36,11 @@ const loading = ref(true);
3636
const error = ref<string | null>(null);
3737
const courseId = ref<string | null>(null);
3838
39+
// View lookup function with proper context binding
40+
const viewLookupFunction = (viewDescription: any) => {
41+
return allCourses.getView(viewDescription);
42+
};
43+
3944
// Initialize browse view
4045
onMounted(async () => {
4146
try {

0 commit comments

Comments
 (0)