{#if is_required} {#await query then vtypes} {#each vtypes as vtype} {#if vtype.id === value} {@render children?.({ vtype, })} {:else} {@render children?.({ vtype, })} {/if} {/each} {/await} {:else} {#await query then vtypes} {#each vtypes as vtype} {#if vtype.id === value} {@render children?.({ vtype, })} {:else} {@render children?.({ vtype, })} {/if} {/each} {/await} {/if}