Merge pull request 'Fix budgeting not being openable' (#29) from hotfix-budget into master
All checks were successful
continuous-integration/drone/push Build is passing

Reviewed-on: #29
This commit is contained in:
Jan Bader 2022-03-01 09:11:33 +01:00
commit f0f97a2e77

View File

@ -98,9 +98,12 @@ export const useAccountStore = defineStore("budget/account", {
actions: { actions: {
async SetCurrentAccount(budgetid: string, accountid: string) { async SetCurrentAccount(budgetid: string, accountid: string) {
if (budgetid == null) if (budgetid == null)
return return;
this.CurrentAccountID = accountid; this.CurrentAccountID = accountid;
if (accountid == null)
return;
const account = this.GetAccount(accountid)!; const account = this.GetAccount(accountid)!;
useSessionStore().setTitle(account.Name); useSessionStore().setTitle(account.Name);
await this.FetchAccount(account); await this.FetchAccount(account);