260326:1726 Fixing Refactor ADR-019 Naming convention uuid #06
CI / CD Pipeline / build (push) Successful in 15m6s
CI / CD Pipeline / deploy (push) Successful in 8m56s

This commit is contained in:
admin
2026-03-26 17:26:28 +07:00
parent 29922aec1f
commit 25ea2fcd0f
25 changed files with 65 additions and 61 deletions
+3 -3
View File
@@ -36,8 +36,8 @@ const STATUS_LABEL: Record<string, string> = {
};
function getLink(result: SearchResult): string {
if (result.type === 'drawing') return `/drawings/${result.uuid}`;
return `/${result.type}s/${result.uuid}`;
if (result.type === 'drawing') return `/drawings/${result.publicId}`;
return `/${result.type}s/${result.publicId}`;
}
export function SearchResults({ results, query, loading }: SearchResultsProps) {
@@ -67,7 +67,7 @@ export function SearchResults({ results, query, loading }: SearchResultsProps) {
return (
<Card
key={`${result.type}-${result.uuid ?? index}`}
key={`${result.type}-${result.publicId ?? index}`}
className="px-5 py-4 hover:shadow-md transition-shadow group"
>
<Link href={getLink(result)}>