fix: sentry minor fix (#24588)
This commit is contained in:
parent
c9f8daf82d
commit
1cce6588ee
1 changed files with 6 additions and 2 deletions
|
|
@ -44,9 +44,13 @@ frappe.ui.form.on("Event", {
|
|||
|
||||
const [ends_on_date] = frm.doc.ends_on
|
||||
? frm.doc.ends_on.split(" ")
|
||||
: frm.doc.starts_on.split(" ");
|
||||
: frm.doc.starts_on?.split(" ") || [];
|
||||
|
||||
if (frm.doc.google_meet_link && frappe.datetime.now_date() <= ends_on_date) {
|
||||
if (
|
||||
ends_on_date &&
|
||||
frm.doc.google_meet_link &&
|
||||
frappe.datetime.now_date() <= ends_on_date
|
||||
) {
|
||||
frm.dashboard.set_headline(
|
||||
__("Join video conference with {0}", [
|
||||
`<a target='_blank' href='${frm.doc.google_meet_link}'>Google Meet</a>`,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue