Skip to content

A local-first personal finance app

fix: do not clear notes field on action.op change (#6046)

Ishan Jaind3d6b68bfef6
diff --git a/packages/desktop-client/src/components/filters/updateFilterReducer.ts b/packages/desktop-client/src/components/filters/updateFilterReducer.ts
index 70a4c0c23f..6074ec00bc 100644
--- a/packages/desktop-client/src/components/filters/updateFilterReducer.ts
+++ b/packages/desktop-client/src/components/filters/updateFilterReducer.ts
@@ -13,6 +13,7 @@ export function updateFilterReducer<T extends RuleConditionEntity>(
let value = state.value;
if (
(type === 'id' || type === 'string') &&
+ state.field !== 'notes' &&
(action.op === 'contains' ||
action.op === 'matches' ||
action.op === 'is' ||
diff --git a/upcoming-release-notes/6046.md b/upcoming-release-notes/6046.md
new file mode 100644
index 0000000000..e100661822
--- /dev/null
+++ b/upcoming-release-notes/6046.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [ishanjain28]
+---
+
+Prevent notes input field from clearing when action.op is changed