Browse Source

fix: must check array length (#18159)

If not check , it will not  work
version-14
Nrtyck 2 years ago
committed by GitHub
parent
commit
d43e084bc5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/email/doctype/notification/notification.js

+ 1
- 1
frappe/email/doctype/notification/notification.js View File

@@ -175,7 +175,7 @@ frappe.ui.form.on("Notification", {
notification: frm.doc.name,
},
callback: function (r) {
if (r.message) {
if (r.message && r.message.length > 0) {
frappe.msgprint(r.message);
} else {
frappe.msgprint(__("No alerts for today"));


Loading…
Cancel
Save