{#if tasks.length > 0}

{header}

{#each sortedTasks as task (task.id)} p.id === task.projectId)} /> {/each} {/if}