Skip to content

Commit

Permalink
fix: fixed reading map property error, reslove #23
Browse files Browse the repository at this point in the history
  • Loading branch information
ahonn committed Sep 19, 2022
1 parent 8e42dc2 commit 1278fc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/TaskSection.tsx
Expand Up @@ -69,11 +69,11 @@ const TaskSection: React.FC<ITaskSectionProps> = (props) => {
{title}
</h2>
<div>
{Object.entries(taskGroups).map(([name, tasks]) => {
{(Object.entries(taskGroups) ?? []).map(([name, tasks]) => {
return (
<div key={name}>
{name && <h3 className="py-1 text-sm text-gray-400">{name}</h3>}
{tasks.map((task) => (
{(tasks ?? []).map((task) => (
<TaskItem key={task.uuid} task={task} onChange={refresh} />
))}
</div>
Expand Down

0 comments on commit 1278fc7

Please sign in to comment.