From ab501e1c6a8d053a90dd8ab898a8380d7d5af8e9 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Wed, 20 Aug 2025 17:18:47 +0530 Subject: [PATCH] fix: filter when getting programming exercise title when adding to lesson --- frontend/src/utils/program.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/utils/program.ts b/frontend/src/utils/program.ts index 67d05236..ee9e7fae 100644 --- a/frontend/src/utils/program.ts +++ b/frontend/src/utils/program.ts @@ -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 = `