fix: add explicit type to permissions.ts find callback parameter

This commit is contained in:
Lorentz 2026-02-16 12:19:18 +00:00
parent ebd91c8fac
commit e6e3afac56

View file

@ -66,7 +66,7 @@ export async function getQuestSession(): Promise<QuestSession | null> {
// If no active company in session, use the first available active company // If no active company in session, use the first available active company
if (!activeCompanyId && authUser.quest_user.companies.length > 0) { if (!activeCompanyId && authUser.quest_user.companies.length > 0) {
const activeCompany = authUser.quest_user.companies.find( const activeCompany = authUser.quest_user.companies.find(
(c) => c.company.is_active (c: (typeof authUser.quest_user.companies)[0]) => c.company.is_active
); );
if (activeCompany) { if (activeCompany) {
activeCompanyId = activeCompany.company.id; activeCompanyId = activeCompany.company.id;