From 617e66d8fb2913a8cbaed5c0933c00f48da027c4 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 2 Jan 2026 10:58:04 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/16741 --- app/src/search/util.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/search/util.ts b/app/src/search/util.ts index fad2e1625..9e60e84a0 100644 --- a/app/src/search/util.ts +++ b/app/src/search/util.ts @@ -1143,9 +1143,6 @@ export const getArticle = (options: { if (articleId !== options.id) { return; } - if (options.edit.protyle.options.render.title) { - options.edit.protyle.title.render(options.edit.protyle, response); - } fetchPost("/api/filetree/getDoc", { id: options.id, query: options.value || null, @@ -1170,7 +1167,9 @@ export const getArticle = (options: { protyle: options.edit.protyle, action: zoomIn ? [Constants.CB_GET_ALL, Constants.CB_GET_HTML] : [Constants.CB_GET_HTML], }); - + if (options.edit.protyle.options.render.title) { + options.edit.protyle.title.render(options.edit.protyle, response); + } const contentRect = options.edit.protyle.contentElement.getBoundingClientRect(); if (isSupportCSSHL()) { let observer: ResizeObserver;