Skip to content

A local-first personal finance app

Fix crash when setting recurring date in rule conditions (#6427)

Copilotffc32517f8ce
diff --git a/packages/desktop-client/src/components/rules/RuleEditor.tsx b/packages/desktop-client/src/components/rules/RuleEditor.tsx
index 302c095383..1c298329b8 100644
--- a/packages/desktop-client/src/components/rules/RuleEditor.tsx
+++ b/packages/desktop-client/src/components/rules/RuleEditor.tsx
@@ -1152,7 +1152,7 @@ export function RuleEditor({
if (field === 'field') {
a.type = FIELD_TYPES.get(a.field);
- a.value = null;
+ a.value = value === 'date' ? '' : null;
a.options = {
...a.options,
template: undefined,
diff --git a/upcoming-release-notes/6427.md b/upcoming-release-notes/6427.md
new file mode 100644
index 0000000000..4ad8ff581b
--- /dev/null
+++ b/upcoming-release-notes/6427.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [MatissJanis]
+---
+
+Rules: allow adding a 'date' action