{#each $lazyGrid as gridComponent, index (index)} {#if gridComponent.data.id === selectedScriptComponentId} {/if} {#if gridComponent.data.type === 'tablecomponent'} {#each gridComponent.data.actionButtons as actionButton, index (index)} {#if actionButton.id === selectedScriptComponentId} {/if} {/each} {/if} {/each} {#each $app.unusedInlineScripts as unusedInlineScript, index (index)} {#if `unused-${index}` === selectedScriptComponentId} { // remove the script from the array at the index $app.unusedInlineScripts.splice(index, 1) $app.unusedInlineScripts = [...$app.unusedInlineScripts] }} /> {/if} {/each}