A local-first personal finance app
:bug: fix budget-type identification when deleting files (#2649)
Matiss Janis Aboltinsf5fde3495292
diff --git a/packages/loot-core/src/server/main.ts b/packages/loot-core/src/server/main.tsindex aa13465ac8..0cd0ac6c95 100644--- a/packages/loot-core/src/server/main.ts+++ b/packages/loot-core/src/server/main.ts@@ -15,6 +15,7 @@ import { isNonProductionEnvironment } from '../shared/environment';import * as monthUtils from '../shared/months';import { q, Query } from '../shared/query';import { amountToInteger, stringToInteger } from '../shared/util';+import { type Budget } from '../types/budget';import { Handlers } from '../types/handlers';import { exportToCSV, exportQueryToCSV } from './accounts/export-to-csv';@@ -1576,10 +1577,10 @@ handlers['get-budgets'] = async function () {if (name !== DEMO_BUDGET_ID) {return {id: name,- cloudFileId: prefs.cloudFileId,- groupId: prefs.groupId,+ ...(prefs.cloudFileId ? { cloudFileId: prefs.cloudFileId } : {}),+ ...(prefs.groupId ? { groupId: prefs.groupId } : {}),name: prefs.budgetName || '(no name)',- };+ } satisfies Budget;}}diff --git a/upcoming-release-notes/2649.md b/upcoming-release-notes/2649.mdnew file mode 100644index 0000000000..f7e3fdbc5c--- /dev/null+++ b/upcoming-release-notes/2649.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [MatissJanis]+---++Do not show "delete remote file" option for local budget files.