From d2ef174a772779165a23cae57dc1c965baf65571 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 3 Jan 2024 23:47:52 -0500 Subject: [PATCH] fix: Incorrect team usage in local development --- app/stores/AuthStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/stores/AuthStore.ts b/app/stores/AuthStore.ts index 54bd1c890..4eb68efb2 100644 --- a/app/stores/AuthStore.ts +++ b/app/stores/AuthStore.ts @@ -157,7 +157,7 @@ export default class AuthStore extends Store { /** The current team */ @computed get team() { - return this.orderedData[0]; + return this.currentTeamId ? this.get(this.currentTeamId) : undefined; } /** The current team's policies */