mirror of
https://github.com/docmost/docmost.git
synced 2025-11-18 22:31:11 +10:00
Merge branch 'main' into ai-vector
This commit is contained in:
@ -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
|
||||
|
||||
Submodule apps/server/src/ee updated: 71d119afd3...66540fd522
Reference in New Issue
Block a user