fix: filter when getting programming exercise title when adding to lesson

This commit is contained in:
Jannat Patel
2025-08-20 17:18:47 +05:30
parent 7cd401327b
commit ab501e1c6a

View File

@@ -79,7 +79,9 @@ export class Program {
}
call("frappe.client.get_value", {
doctype: 'LMS Programming Exercise',
name: exercise,
filters: {
name: exercise
},
fieldname: "title"
}).then((data: { title: string }) => {
this.wrapper.innerHTML = `<div class='border rounded-md p-4 text-center bg-surface-menu-bar mb-4'>