fix: harden getActiveContext and add error logging on presentations page

- getActiveContext now verifies team still exists (teams.get) before
  trusting the cookie/prefs tenantId, preventing stale E Ofis cookie
  from causing an onboarding redirect loop
- Resolved tenantId from getUserTeams() is now persisted to cookie so
  subsequent requests skip the resolution path
- Added catch+log on presentations data fetch to surface the actual
  error in server logs
This commit is contained in:
egecankomur
2026-05-12 15:33:38 +03:00
parent 84be9ec5e3
commit b71edd880b
2 changed files with 22 additions and 3 deletions
+4 -1
View File
@@ -25,7 +25,10 @@ export default async function PresentationsPage() {
Query.limit(200),
],
}),
]);
]).catch((e) => {
console.error("[PresentationsPage] data fetch failed:", e);
throw e;
});
const presentations = JSON.parse(JSON.stringify(presResult.rows)) as Presentation[];