Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/src/contexts/EventContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function withoutSessionKey<T>(bySession: Record<string, T[]>, sessionID: string)
*/
function withoutMatchingItems<T>(
bySession: Record<string, T[]>,
shouldRemove: (item: T) => boolean,
shouldRemove: (item: NoInfer<T>) => boolean,
): Record<string, T[]> {
let changed = false
const next: Record<string, T[]> = {}
Expand Down Expand Up @@ -744,7 +744,7 @@ export function EventProvider({ children }: { children: React.ReactNode }) {
const unresolvedSessionIDs = new Set<string>()
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)
}
Expand Down
Loading