mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-21 15:36:50 -05:00
Fix crash when setting recurring date in rule conditions (#6427)
* Initial plan * Fix crash when setting date in a rule with null value Co-authored-by: MatissJanis <886567+MatissJanis@users.noreply.github.com> * Update RuleEditor and input components to handle RecurConfig values correctly --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: MatissJanis <886567+MatissJanis@users.noreply.github.com> Co-authored-by: Matiss Janis Aboltins <matiss@mja.lv>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user