Remove unused sections
This commit is contained in:
parent
6c161843e5
commit
2506324cfd
@ -31,7 +31,10 @@ const HomePage = () => {
|
||||
</div>
|
||||
)}
|
||||
{sections &&
|
||||
sections.map((section) => (
|
||||
sections.map(
|
||||
(section) =>
|
||||
groupedTodos[section].filter((t) => t.status !== true).length !==
|
||||
0 && (
|
||||
<div key={section} className="space-y-2">
|
||||
<ProjectsHeading title={section} />
|
||||
<TodoList
|
||||
@ -41,7 +44,8 @@ const HomePage = () => {
|
||||
hideProject
|
||||
/>
|
||||
</div>
|
||||
))}
|
||||
)
|
||||
)}
|
||||
{data && data.length === 0 && (
|
||||
<div className="space-y-4">
|
||||
<PageHeading title="You're done!" />
|
||||
|
Loading…
Reference in New Issue
Block a user