diff --git a/frontend/src/contexts/EventContext.tsx b/frontend/src/contexts/EventContext.tsx index a96aee7bb..f30540d07 100644 --- a/frontend/src/contexts/EventContext.tsx +++ b/frontend/src/contexts/EventContext.tsx @@ -172,7 +172,7 @@ function withoutSessionKey(bySession: Record, sessionID: string) */ function withoutMatchingItems( bySession: Record, - shouldRemove: (item: T) => boolean, + shouldRemove: (item: NoInfer) => boolean, ): Record { let changed = false const next: Record = {} @@ -744,7 +744,7 @@ export function EventProvider({ children }: { children: React.ReactNode }) { const unresolvedSessionIDs = new Set() for (const bySession of [permissionsBySessionRef.current, formsBySessionRef.current]) { for (const [sessionID, items] of Object.entries(bySession)) { - if (!items.some((item) => item.serverId === serverId)) continue + if (!items.some((item: { serverId: string }) => item.serverId === serverId)) continue if (findSessionDirectoryKey(sessionID) !== null) continue unresolvedSessionIDs.add(sessionID) }