{#each tree.entries as entry (entry.path)} {#if entry.info.objectType === ObjectType.Tree} {:else} onSelect({ detail: entry.path })} /> {/if} {/each}