From ce2731cd9d50a198d0f20ff6fba2edb5e10ddaa3 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Tue, 12 May 2026 16:04:46 +0200 Subject: [PATCH] fix: update types for cursor and toRemove --- components/email/email-composer.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/email/email-composer.tsx b/components/email/email-composer.tsx index cb1aa8d3..5d9fa94e 100644 --- a/components/email/email-composer.tsx +++ b/components/email/email-composer.tsx @@ -404,12 +404,12 @@ export function EmailComposer({ // Remove the existing signature range [startEl … endEl] inclusive, or // from startEl to the next blockquote if no end marker is present. const removeUntil = endEl && endEl.parentNode === parent ? endEl : null; - let cursor: ChildNode | null = startEl; - const toRemove: ChildNode[] = []; + const toRemove: Node[] = []; + let cursor: Node | null = startEl; while (cursor) { toRemove.push(cursor); if (cursor === removeUntil) break; - const next: ChildNode | null = cursor.nextSibling; + const next: Node | null = cursor.nextSibling; if (!removeUntil && next && (next as Element).tagName === 'BLOCKQUOTE') break; cursor = next; }