fix: misc issues

This commit is contained in:
Jannat Patel
2024-10-14 19:17:32 +05:30
parent 9cdeaebb47
commit 53285a0d19
3 changed files with 3 additions and 16 deletions

View File

@@ -152,24 +152,11 @@ const filterOptions = createResource({
url: 'frappe.desk.search.search_link', url: 'frappe.desk.search.search_link',
method: 'POST', method: 'POST',
cache: [text.value, props.doctype], cache: [text.value, props.doctype],
auto: true,
params: { params: {
txt: text.value, txt: text.value,
doctype: props.doctype, 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(() => { const options = computed(() => {

View File

@@ -279,7 +279,7 @@ const renderEditor = (holder, content) => {
} }
const markProgress = () => { const markProgress = () => {
if (user.data && !lesson.data?.progress) { if (user.data && lesson.data && !lesson.data.progress) {
progress.submit() progress.submit()
} }
} }

View File

@@ -2,7 +2,7 @@
"name": "frappe_lms", "name": "frappe_lms",
"version": "1.0.0", "version": "1.0.0",
"description": "Easy to use, open-source, Learning Management System", "description": "Easy to use, open-source, Learning Management System",
"workspaces1": [ "workspaces": [
"frappe-ui", "frappe-ui",
"frontend" "frontend"
], ],