From 9c2bb9b3dec8555d407ec936ac1baa311f04f7fd Mon Sep 17 00:00:00 2001 From: Matiss Janis Aboltins Date: Tue, 24 Sep 2024 21:07:15 +0100 Subject: [PATCH] :test_tube: improving rules e2e test stability (#3498) --- packages/desktop-client/src/components/ManageRules.tsx | 6 +++++- upcoming-release-notes/3498.md | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 upcoming-release-notes/3498.md diff --git a/packages/desktop-client/src/components/ManageRules.tsx b/packages/desktop-client/src/components/ManageRules.tsx index a5c68ac6f16..b7b5f69438c 100644 --- a/packages/desktop-client/src/components/ManageRules.tsx +++ b/packages/desktop-client/src/components/ManageRules.tsx @@ -35,7 +35,11 @@ import { RulesList } from './rules/RulesList'; import { SchedulesQuery } from './rules/SchedulesQuery'; import { SimpleTable } from './rules/SimpleTable'; -function mapValue(field, value, { payees, categories, accounts }) { +function mapValue( + field, + value, + { payees = [], categories = [], accounts = [] }, +) { if (!value) return ''; let object = null; diff --git a/upcoming-release-notes/3498.md b/upcoming-release-notes/3498.md new file mode 100644 index 00000000000..e14d239550f --- /dev/null +++ b/upcoming-release-notes/3498.md @@ -0,0 +1,6 @@ +--- +category: Maintenance +authors: [MatissJanis] +--- + +e2e: improve rules test stability.