fix: add explicit type to permissions.ts find callback parameter
This commit is contained in:
parent
ebd91c8fac
commit
e6e3afac56
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue