From 1278fc7753c0471952ce33d72599f62e49cf99c2 Mon Sep 17 00:00:00 2001 From: ahonn Date: Mon, 19 Sep 2022 11:11:09 +0800 Subject: [PATCH] fix: fixed reading map property error, reslove #23 --- src/components/TaskSection.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/TaskSection.tsx b/src/components/TaskSection.tsx index b402a89..199dd7c 100644 --- a/src/components/TaskSection.tsx +++ b/src/components/TaskSection.tsx @@ -69,11 +69,11 @@ const TaskSection: React.FC = (props) => { {title}
- {Object.entries(taskGroups).map(([name, tasks]) => { + {(Object.entries(taskGroups) ?? []).map(([name, tasks]) => { return (
{name &&

{name}

} - {tasks.map((task) => ( + {(tasks ?? []).map((task) => ( ))}