chore: add client-side empty comment validation
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
parent
109c7a1ce8
commit
491be746c8
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@
|
|||
route: "{{ pathname }}",
|
||||
}
|
||||
|
||||
if(!args.comment) {
|
||||
if(!args.comment || !args.comment.trim()) {
|
||||
frappe.msgprint("{{ _("Please add a valid comment.") }}");
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue