From 617135466da0456c4f7bf230be25355622d5fa76 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Fri, 3 Jul 2026 19:22:57 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- packages/pdf/src/templates/shared/rich-text.tsx | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/packages/pdf/src/templates/shared/rich-text.tsx b/packages/pdf/src/templates/shared/rich-text.tsx index 959606897..6b8bdb763 100644 --- a/packages/pdf/src/templates/shared/rich-text.tsx +++ b/packages/pdf/src/templates/shared/rich-text.tsx @@ -128,14 +128,12 @@ export const RichText = ({ children }: RichTextProps) => { ); - let hasNestedList = false; - if (Array.isArray(children)) { - hasNestedList = children.some( - (child) => - child?.props?.element?.rawTagName === "ul" || - child?.props?.element?.rawTagName === "ol", - ); - } + let hasNestedList = false; + if (Array.isArray(children)) { + hasNestedList = children.some( + (child) => child?.props?.element?.rawTagName === "ul" || child?.props?.element?.rawTagName === "ol", + ); + } // Same BiDi-injection trick as the
renderer — see applyRtlDirectionRecursively.
const contentNode = rtl ? (
@@ -164,7 +162,7 @@ export const RichText = ({ children }: RichTextProps) => {
>