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