Merge pull request #2385 from cheetahbyte/fix/template-search

fix(template): duplicate key issue causing wrong formatting in template search
This commit is contained in:
Mauricio Siu
2025-08-16 16:12:00 -06:00
committed by GitHub

View File

@@ -307,9 +307,9 @@ export const AddTemplate = ({ projectId, baseUrl }: Props) => {
: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 xl:grid-cols-5 2xl:grid-cols-6",
)}
>
{templates?.map((template) => (
{templates?.map((template, idx) => (
<div
key={template?.id}
key={`${template.id}-${template.version || 'default'}-${idx}`}
className={cn(
"flex flex-col border rounded-lg overflow-hidden relative",
viewMode === "icon" && "h-[200px]",