diff --git a/packages/loot-core/src/server/budget/goaltemplates.ts b/packages/loot-core/src/server/budget/goaltemplates.ts index 975bd2be6285cfc11b6e4a54cbab44ef959e9735..993c30d7081d4b8f70b94c6084d42c33a57530e7 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.md new file mode 100644 index 0000000000000000000000000000000000000000..84c4bf795d300cf9e679963e1f3f7236a660efcd --- /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