mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-21 15:36:50 -05:00
🐛 added null/undefined check for scheduleIsRecurring (#4627)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user