mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-08 21:15:17 +00:00
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:
@@ -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",
|
: "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
|
<div
|
||||||
key={template?.id}
|
key={`${template.id}-${template.version || 'default'}-${idx}`}
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex flex-col border rounded-lg overflow-hidden relative",
|
"flex flex-col border rounded-lg overflow-hidden relative",
|
||||||
viewMode === "icon" && "h-[200px]",
|
viewMode === "icon" && "h-[200px]",
|
||||||
|
|||||||
Reference in New Issue
Block a user