{#if tasks.length > 0}

{header}

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