Fixed err in undef arrays

This commit is contained in:
MaxOvs19
2023-12-06 18:26:47 +03:00
parent 585604d0b9
commit f98e788201
4 changed files with 10 additions and 10 deletions

View File

@ -30,7 +30,7 @@ const AllTaskTableItem = ({ task, projects }) => {
<div className="taskList__table__name-project hide-desc">
<h4>Проект:</h4>
<p>
{projects.map((project) => {
{projects?.map((project) => {
if (project.id == task.project_id) {
return project.name;
}