mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: add description on search
This commit is contained in:
@@ -92,7 +92,8 @@ export const AddTemplate = ({ projectId }: Props) => {
|
|||||||
template.tags.some((tag) => selectedTags.includes(tag));
|
template.tags.some((tag) => selectedTags.includes(tag));
|
||||||
const matchesQuery =
|
const matchesQuery =
|
||||||
query === "" ||
|
query === "" ||
|
||||||
template.name.toLowerCase().includes(query.toLowerCase());
|
template.name.toLowerCase().includes(query.toLowerCase()) ||
|
||||||
|
template.description.toLowerCase().includes(query.toLowerCase());
|
||||||
return matchesTags && matchesQuery;
|
return matchesTags && matchesQuery;
|
||||||
}) || [];
|
}) || [];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user