Select which datasource you would like to use to create your screens {#each filteredSources as datasource}
{datasource.name}
{#if Array.isArray(datasource.entities)} {#each datasource.entities.filter(table => table._id !== "ta_users") as table}
x.table === table._id )} on:click={() => toggleScreenSelection(table, datasource)} > {table.name} {#if selectedScreens.find(x => x.table === table._id)} {/if}
{/each} {/if} {#if datasource["entities"] && !Array.isArray(datasource.entities)} {#each Object.keys(datasource.entities).filter(table => table._id !== "ta_users") as table_key}
x.table === datasource.entities[table_key]._id )} on:click={() => toggleScreenSelection( datasource.entities[table_key], datasource )} > {datasource.entities[table_key].name} {#if selectedScreens.find(x => x.table === datasource.entities[table_key]._id)} {/if}
{/each} {/if}
{/each}