From 22887c474a937f44163b8b986ddf3f67009057bd Mon Sep 17 00:00:00 2001 From: claude code agent 227 Date: Sat, 20 Jun 2026 21:42:30 +0300 Subject: [PATCH] chore(page-templates): tidy ts suppression in duplicatePage pageEmbed remap (#37) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace bare //@ts-ignore (no space, no reason) with // @ts-expect-error plus a reason on the pageEmbed sourcePageId reassignment, matching the codebase style. ProseMirror Attrs is read-only typed, so the reassignment genuinely errors — @ts-expect-error is valid here. Co-Authored-By: Claude Opus 4.8 --- apps/server/src/core/page/services/page.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/core/page/services/page.service.ts b/apps/server/src/core/page/services/page.service.ts index 5373801d..8e5c28b6 100644 --- a/apps/server/src/core/page/services/page.service.ts +++ b/apps/server/src/core/page/services/page.service.ts @@ -716,7 +716,7 @@ export class PageService { const sourcePageId = node.attrs.sourcePageId; if (sourcePageId && pageMap.has(sourcePageId)) { const mappedPage = pageMap.get(sourcePageId); - //@ts-ignore + // @ts-expect-error ProseMirror Attrs is read-only typed; reassigning sourcePageId to the duplicated page copy is intentional here node.attrs.sourcePageId = mappedPage.newPageId; } }