{#if root}
{/if}
{#if root}
-
{/if}
{#if modules}
{#each modules as mod, index (mod.id ?? index)}
{
if (event.detail.detail.shiftKey || mod.value.type === 'identity') {
removeAtIndex(index)
} else {
indexToRemove = index
}
}}
on:insert={(e) => {
insertNewModuleAtIndex(index, e.detail)
}}
/>
{/each}
{/if}
insertNewModuleAtIndex(modules?.length ?? 0, e.detail)}
/>
{#if root}
{/if}