From 1f3b0c72769ec9e643171b0cc0d400e8d47758e6 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Wed, 24 Sep 2025 21:25:39 +0100 Subject: [PATCH] cloud fix --- .../client/src/features/search/components/search-spotlight.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/client/src/features/search/components/search-spotlight.tsx b/apps/client/src/features/search/components/search-spotlight.tsx index e7e3c9f7..045c7477 100644 --- a/apps/client/src/features/search/components/search-spotlight.tsx +++ b/apps/client/src/features/search/components/search-spotlight.tsx @@ -8,6 +8,7 @@ import { SearchSpotlightFilters } from "./search-spotlight-filters.tsx"; import { useUnifiedSearch } from "../hooks/use-unified-search.ts"; import { SearchResultItem } from "./search-result-item.tsx"; import { useLicense } from "@/ee/hooks/use-license.tsx"; +import { isCloud } from "@/lib/config.ts"; interface SearchSpotlightProps { spaceId?: string; @@ -43,7 +44,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) => (