From ef6ad2a7f2fc6cb0d1aa6f12136a27798e42ac88 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Thu, 29 May 2025 10:42:07 +0800 Subject: [PATCH] chore: fix type check --- apps/desktop/layer/renderer/src/hooks/biz/useEntryActions.tsx | 3 ++- apps/desktop/layer/renderer/src/lib/parse-html.ts | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/desktop/layer/renderer/src/hooks/biz/useEntryActions.tsx b/apps/desktop/layer/renderer/src/hooks/biz/useEntryActions.tsx index 37cf0e4e9..f9da0b04d 100644 --- a/apps/desktop/layer/renderer/src/hooks/biz/useEntryActions.tsx +++ b/apps/desktop/layer/renderer/src/hooks/biz/useEntryActions.tsx @@ -155,7 +155,8 @@ export const useEntryActions = ({ const isContentContainsHTMLTags = doesTextContainHTML(entry?.entries.content) const isShowSourceContent = useShowSourceContent() - const isShowAISummaryAuto = useShowAISummaryAuto(entry) + const summarySetting = useEntry(entryId, (state) => state.settings?.summary) + const isShowAISummaryAuto = useShowAISummaryAuto(summarySetting) const isShowAISummaryOnce = useShowAISummaryOnce() const isShowAITranslationAuto = useShowAITranslationAuto(entry) const isShowAITranslationOnce = useShowAITranslationOnce() diff --git a/apps/desktop/layer/renderer/src/lib/parse-html.ts b/apps/desktop/layer/renderer/src/lib/parse-html.ts index 010de94a0..9ba35d2e0 100644 --- a/apps/desktop/layer/renderer/src/lib/parse-html.ts +++ b/apps/desktop/layer/renderer/src/lib/parse-html.ts @@ -108,7 +108,6 @@ export const parseHtml = ( markInlineImage(node) return createElement("i", props, props.children) }, - // @ts-expect-error math: Math, hr: ({ node, ...props }) => createElement("hr", {