🐛 added null/undefined check for scheduleIsRecurring (#4627)

This commit is contained in:
Alec Bakholdin
2025-03-15 16:23:31 -04:00
committed by GitHub
parent 0cdaac6944
commit f00484b17c
2 changed files with 10 additions and 1 deletions

View File

@@ -425,7 +425,10 @@ export function getUpcomingDays(upcomingLength = '7'): number {
}
}
export function scheduleIsRecurring(dateCond) {
export function scheduleIsRecurring(dateCond: Condition | null) {
if (!dateCond) {
return false;
}
const cond = new Condition(dateCond.op, 'date', dateCond.value, null);
const value = cond.getValue();

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [alecbakholdin]
---
Fixed error with scheduleIsRecurring and null/undefined condition