Fix linter errors in LayoutDataProvider and AllSearchSpacesSheet

This commit is contained in:
CREDO23 2026-01-12 16:47:15 +02:00
parent b6ddc233db
commit 4a2f62be1f
2 changed files with 6 additions and 11 deletions

View file

@ -143,16 +143,11 @@ export function LayoutDataProvider({
}));
}, [searchSpacesData]);
// Use searchSpace query result for active search space (more reliable than finding in list)
const activeSearchSpace: SearchSpace | null = searchSpace
? {
id: searchSpace.id,
name: searchSpace.name,
description: searchSpace.description,
isOwner: searchSpace.is_owner,
memberCount: searchSpace.member_count || 0,
}
: null;
// Find active search space from list (has is_owner and member_count)
const activeSearchSpace: SearchSpace | null = useMemo(() => {
if (!searchSpaceId || !searchSpaces.length) return null;
return searchSpaces.find((s) => s.id === Number(searchSpaceId)) ?? null;
}, [searchSpaceId, searchSpaces]);
// Transform chats
const chats: ChatItem[] = useMemo(() => {