mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 20:44:32 -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();
|
||||
|
||||
|
||||
6
upcoming-release-notes/4627.md
Normal file
6
upcoming-release-notes/4627.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [alecbakholdin]
|
||||
---
|
||||
|
||||
Fixed error with scheduleIsRecurring and null/undefined condition
|
||||
Reference in New Issue
Block a user