diff --git a/frontend/src/components/KanbanBoard/KanbanCard.tsx b/frontend/src/components/KanbanBoard/KanbanCard.tsx index 5441aea..185ec91 100644 --- a/frontend/src/components/KanbanBoard/KanbanCard.tsx +++ b/frontend/src/components/KanbanBoard/KanbanCard.tsx @@ -57,6 +57,17 @@ const KanbanCard = ({ iconClassName={'w-5'} /> + + {item.tags && item.tags.length > 0 && ( +
+ {item.tags.map((tag: any) => ( + + {tag.name} + + ))} +
+ )} + ); }; diff --git a/frontend/src/components/KanbanBoard/KanbanColumn.tsx b/frontend/src/components/KanbanBoard/KanbanColumn.tsx index b003d50..fa807d6 100644 --- a/frontend/src/components/KanbanBoard/KanbanColumn.tsx +++ b/frontend/src/components/KanbanBoard/KanbanColumn.tsx @@ -90,7 +90,7 @@ const KanbanColumn = ({ const loadData = useCallback( (page: number, filters = '') => { - const query = `?page=${page}&limit=${perPage}&field=createdAt&sort=desc&${columnFieldName}=${column.id}&${filters}`; + const query = `?page=${page}&limit=${perPage}&populate=tags&field=createdAt&sort=desc&${columnFieldName}=${column.id}&${filters}`; setLoading(true); Axios.get(`${entityName}${query}`) .then((res) => { diff --git a/frontend/src/components/Tasks/CardTasks.tsx b/frontend/src/components/Tasks/CardTasks.tsx index 2262277..9d7c86f 100644 --- a/frontend/src/components/Tasks/CardTasks.tsx +++ b/frontend/src/components/Tasks/CardTasks.tsx @@ -162,16 +162,20 @@ const CardTasks = ({ -
-
Tags
+
Tags
-
- {dataFormatter - .tagsManyListFormatter(item.tags) - .join(', ')} +
+ {item.tags && item.tags.length > 0 ? ( + item.tags.map((tag) => ( + + {tag.name} + + )) + ) : ( + No Tags + )}
-
))}