{ if (fileId.startsWith('attachment-')) { const index = parseInt(fileId.replace('attachment-', ''), 10); if (!isNaN(index) && index >= 0 && index < editedExtras.length) { handleRemoveExistingAttachment(index); } } else { handleRemoveUploadedFile(fileId); } }} limitToSingleRow class="py-5" style="scroll-padding: 1rem;" />
{#if isRouter} {/if}
{#if showSaveOnlyOption && onSaveEditOnly}
{:else}
{/if}
(showDiscardDialog = false)} />