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", {