mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix #3114
This commit is contained in:
parent
ccc80dd437
commit
39cdbc461e
@ -61,16 +61,12 @@
|
||||
loadBudgets: function () {
|
||||
let URI = document.getElementsByTagName('base')[0].href + "json/budgets";
|
||||
axios.get(URI, {}).then((res) => {
|
||||
this.budgets = [
|
||||
{
|
||||
name: this.no_budget,
|
||||
id: 0,
|
||||
},
|
||||
{
|
||||
name: this.no_budget,
|
||||
id: null,
|
||||
}
|
||||
];
|
||||
this.budgets = [
|
||||
{
|
||||
name: this.no_budget,
|
||||
id: 0,
|
||||
}
|
||||
];
|
||||
for (const key in res.data) {
|
||||
if (res.data.hasOwnProperty(key) && /^0$|^[1-9]\d*$/.test(key) && key <= 4294967294) {
|
||||
this.budgets.push(res.data[key]);
|
||||
|
Loading…
Reference in New Issue
Block a user