Skip to content

A local-first personal finance app

Fix CSV import not matching category is (nothing) rules (#2790)

Matt Fiddaman6220aadb2d72
diff --git a/packages/desktop-client/src/components/modals/ImportTransactions.jsx b/packages/desktop-client/src/components/modals/ImportTransactions.jsx
index bffda77e0f..26abe34e46 100644
--- a/packages/desktop-client/src/components/modals/ImportTransactions.jsx
+++ b/packages/desktop-client/src/components/modals/ImportTransactions.jsx
@@ -941,9 +941,7 @@ export function ImportTransactions({ modalProps, options }) {
}
const category_id = parseCategoryFields(trans, categories.list);
- if (category_id != null) {
- trans.category = category_id;
- }
+ trans.category = category_id;
const { inflow, outflow, inOut, ...finalTransaction } = trans;
finalTransactions.push({
diff --git a/upcoming-release-notes/2790.md b/upcoming-release-notes/2790.md
new file mode 100644
index 0000000000..72fec3c4fa
--- /dev/null
+++ b/upcoming-release-notes/2790.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [matt-fidd]
+---
+
+Fix CSV import not matching category is (nothing) rules