Skip to content

Commit

Permalink
fix(project-details): available tasks not showing on table
Browse files Browse the repository at this point in the history
behave the task not having state as available tasks
  • Loading branch information
Sujit committed Oct 9, 2024
1 parent 75f99b8 commit f1596a8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ export default function TableSection({ isFetching }: { isFetching: boolean }) {
const taskDataForTable = useMemo(() => {
if (!tasksData) return [];
return tasksData?.reduce((acc: any, curr: any) => {
if (!(curr?.state === '' || curr?.state === 'UNLOCKED_TO_MAP'))
return acc;
if (!(!curr?.state || curr?.state === 'UNLOCKED_TO_MAP')) return acc;
return [
...acc,
{
Expand Down

0 comments on commit f1596a8

Please sign in to comment.