Merge branch 'main' into ai-vector

This commit is contained in:
Philipinho
2025-09-29 02:30:47 +01:00
2 changed files with 3 additions and 2 deletions

View File

@ -11,6 +11,7 @@ import { useAiSearch } from "../hooks/use-ai-search.ts";
import { SearchResultItem } from "./search-result-item.tsx";
import { AiSearchResult } from "./ai-search-result.tsx";
import { useLicense } from "@/ee/hooks/use-license.tsx";
import { isCloud } from "@/lib/config.ts";
interface SearchSpotlightProps {
spaceId?: string;
@ -55,7 +56,7 @@ export function SearchSpotlight({ spaceId }: SearchSpotlightProps) {
// Determine result type for rendering
const isAttachmentSearch =
filters.contentType === "attachment" && hasLicenseKey;
filters.contentType === "attachment" && (hasLicenseKey || isCloud());
const resultItems = (searchResults || []).map((result) => (
<SearchResultItem