Fix budgeting not being openable
This commit is contained in:
1 parent
8f666a0f26
commit
71b2f8a9a3
1 file changed
+4
-1
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user