Skip to content
Snippets Groups Projects
Unverified Commit f5fde349 authored by Matiss Janis Aboltins's avatar Matiss Janis Aboltins Committed by GitHub
Browse files

:bug: fix budget-type identification when deleting files (#2649)

parent 59f854c0
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
---
category: Bugfix
authors: [MatissJanis]
---
Do not show "delete remote file" option for local budget files.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment