Skip to content

Commit

Permalink
Merge pull request #1076 from pateljannat/issues-44
Browse files Browse the repository at this point in the history
fix: misc issues
  • Loading branch information
pateljannat authored Oct 23, 2024
2 parents af0cc71 + a085050 commit c5ca428
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
15 changes: 1 addition & 14 deletions frontend/src/components/Controls/MultiSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,24 +152,11 @@ const filterOptions = createResource({
url: 'frappe.desk.search.search_link',
method: 'POST',
cache: [text.value, props.doctype],
auto: true,
params: {
txt: text.value,
doctype: props.doctype,
},
/* transform: (data) => {
let allData = data
.filter((c) => {
return c.description.split(', ')[1]
})
.map((option) => {
let email = option.description.split(', ')[1]
return {
label: option.label || email,
value: email,
}
})
return allData
}, */
})
const options = computed(() => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Lesson.vue
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ const renderEditor = (holder, content) => {
}
const markProgress = () => {
if (user.data && !lesson.data?.progress) {
if (user.data && lesson.data && !lesson.data.progress) {
progress.submit()
}
}
Expand Down
1 change: 1 addition & 0 deletions lms/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@
"lms.lms.utils.get_lesson_url",
"lms.page_renderers.get_profile_url",
"lms.overrides.user.get_palette",
"lms.lms.utils.is_instructor",
],
"filters": [],
}
Expand Down

0 comments on commit c5ca428

Please sign in to comment.