A local-first personal finance app
[Bug] Goals: Monthly schedule can cause error (#1478)
shall0pass40d94141c4c4
diff --git a/packages/loot-core/src/server/budget/goaltemplates.ts b/packages/loot-core/src/server/budget/goaltemplates.tsindex 975bd2be62..993c30d708 100644--- a/packages/loot-core/src/server/budget/goaltemplates.ts+++ b/packages/loot-core/src/server/budget/goaltemplates.ts@@ -649,7 +649,9 @@ async function applyCategoryTemplate(dateConditions,monthUtils._parse(current_month),);- let target_interval = dateConditions.value.interval;+ let target_interval = dateConditions.value.interval+ ? dateConditions.value.interval+ : 1;let target_frequency = dateConditions.value.frequency;let isRepeating =Object(dateConditions.value) === dateConditions.value &&diff --git a/upcoming-release-notes/1478.md b/upcoming-release-notes/1478.mdnew file mode 100644index 0000000000..84c4bf795d--- /dev/null+++ b/upcoming-release-notes/1478.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [shall0pass]+---++Goals: Fix error that can occur with monthly schedules