mirror of
https://github.com/docmost/docmost.git
synced 2025-11-18 20:51: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 { SearchResultItem } from "./search-result-item.tsx";
|
||||||
import { AiSearchResult } from "./ai-search-result.tsx";
|
import { AiSearchResult } from "./ai-search-result.tsx";
|
||||||
import { useLicense } from "@/ee/hooks/use-license.tsx";
|
import { useLicense } from "@/ee/hooks/use-license.tsx";
|
||||||
|
import { isCloud } from "@/lib/config.ts";
|
||||||
|
|
||||||
interface SearchSpotlightProps {
|
interface SearchSpotlightProps {
|
||||||
spaceId?: string;
|
spaceId?: string;
|
||||||
@ -55,7 +56,7 @@ export function SearchSpotlight({ spaceId }: SearchSpotlightProps) {
|
|||||||
|
|
||||||
// Determine result type for rendering
|
// Determine result type for rendering
|
||||||
const isAttachmentSearch =
|
const isAttachmentSearch =
|
||||||
filters.contentType === "attachment" && hasLicenseKey;
|
filters.contentType === "attachment" && (hasLicenseKey || isCloud());
|
||||||
|
|
||||||
const resultItems = (searchResults || []).map((result) => (
|
const resultItems = (searchResults || []).map((result) => (
|
||||||
<SearchResultItem
|
<SearchResultItem
|
||||||
|
|||||||
Submodule apps/server/src/ee updated: 71d119afd3...66540fd522
Reference in New Issue
Block a user