mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-28 10:33:02 -05:00
Fix rule edit page crashing (#6175)
This commit is contained in:
committed by
GitHub
parent
6834f4d669
commit
38145975ec
Binary file not shown.
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
@@ -1093,7 +1093,7 @@ export function RuleEditor({
|
||||
type: FIELD_TYPES.get(field),
|
||||
field,
|
||||
op: 'set',
|
||||
value: null,
|
||||
value: '',
|
||||
options: { splitIndex },
|
||||
inputKey: uuid(),
|
||||
};
|
||||
|
||||
@@ -4,7 +4,11 @@ import * as d from 'date-fns';
|
||||
import { Locale } from 'date-fns';
|
||||
import { t } from 'i18next';
|
||||
|
||||
import { type PayeeEntity, type ScheduleEntity } from 'loot-core/types/models';
|
||||
import {
|
||||
type PayeeEntity,
|
||||
type RecurConfig,
|
||||
type ScheduleEntity,
|
||||
} from 'loot-core/types/models';
|
||||
|
||||
import { Condition } from '../server/rules';
|
||||
|
||||
@@ -96,7 +100,11 @@ function prettyDayName(day) {
|
||||
return days[day];
|
||||
}
|
||||
|
||||
export function getRecurringDescription(config, dateFormat, locale: Locale) {
|
||||
export function getRecurringDescription(
|
||||
config: RecurConfig,
|
||||
dateFormat: string,
|
||||
locale: Locale,
|
||||
) {
|
||||
const interval = config.interval || 1;
|
||||
|
||||
let endModeSuffix = '';
|
||||
|
||||
@@ -13,7 +13,7 @@ export interface RecurConfig {
|
||||
patterns?: RecurPattern[];
|
||||
skipWeekend?: boolean;
|
||||
start: string;
|
||||
endMode: 'never' | 'after_n_occurrences' | 'on_date';
|
||||
endMode?: 'never' | 'after_n_occurrences' | 'on_date';
|
||||
endOccurrences?: number;
|
||||
endDate?: string;
|
||||
weekendSolveMode?: 'before' | 'after';
|
||||
|
||||
6
upcoming-release-notes/6175.md
Normal file
6
upcoming-release-notes/6175.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [MatissJanis]
|
||||
---
|
||||
|
||||
Fix rule page crashing when many actions added
|
||||
Reference in New Issue
Block a user