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:
Copilot
2025-12-19 23:40:50 +00:00
committed by GitHub
parent 4fc00ae7f1
commit ffc32517f8
2 changed files with 7 additions and 1 deletions

View File

@@ -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,