From 71b2f8a9a3a8eacd604a92e687ef11f4646fa88e Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Mon, 28 Feb 2022 20:14:27 +0000 Subject: [PATCH] Fix budgeting not being openable --- web/src/stores/budget-account.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/stores/budget-account.ts b/web/src/stores/budget-account.ts index b7cf3fc..601e2e9 100644 --- a/web/src/stores/budget-account.ts +++ b/web/src/stores/budget-account.ts @@ -98,9 +98,12 @@ export const useAccountStore = defineStore("budget/account", { actions: { async SetCurrentAccount(budgetid: string, accountid: string) { if (budgetid == null) - return + return; this.CurrentAccountID = accountid; + + if (accountid == null) + return; const account = this.GetAccount(accountid)!; useSessionStore().setTitle(account.Name); await this.FetchAccount(account);