This commit is contained in:
James Cole 2020-02-14 08:43:57 +01:00
parent ccc80dd437
commit 39cdbc461e
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -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]);