{#await apiCall('database-connections/load-keys', { conid, database, root, filter, reloadToken, reloadToken2 })} {:then items} {@const itemsSorted = _.sortBy(items || [], 'text')} {#each itemsSorted.slice(0, maxShowCount) as item} { reloadToken2 += 1; }} /> {/each} {#if itemsSorted.length > maxShowCount} { maxShowCount += SHOW_INCREMENT; }} /> {/if} {/await}