Skip to content

Commit

Permalink
fix(submissionsInfographics): handle undefined task_history
Browse files Browse the repository at this point in the history
  • Loading branch information
NSUWAL123 committed Oct 28, 2024
1 parent ec06864 commit 88c1b83
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const SubmissionsInfographics = ({ toggleView, entities }) => {
const projectIndex = projectTaskList.findIndex((project) => project.id == +projectId);
// task activities history list
const taskActivities = projectTaskList?.[projectIndex]?.taskBoundries?.reduce((acc: taskHistoryTypes[], task) => {
return [...acc, ...task?.task_history];
return [...acc, ...(task?.task_history ?? [])];
}, []);

// filter activities for last 30 days
Expand Down

0 comments on commit 88c1b83

Please sign in to comment.