From 8cef519539bd4b96757be328cf518a9881efe33f Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 9 Oct 2022 09:48:45 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/6104 --- app/src/protyle/wysiwyg/transaction.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts index b9d7c240f..e07d87b71 100644 --- a/app/src/protyle/wysiwyg/transaction.ts +++ b/app/src/protyle/wysiwyg/transaction.ts @@ -160,12 +160,6 @@ const promiseTransaction = () => { blockRender(protyle, item); } }); - // 更新引用块 - protyle.wysiwyg.element.querySelectorAll(`[data-type~="block-ref"][data-id="${operation.id}"]`).forEach(item => { - if (item.getAttribute("data-subtype") === "d") { - item.textContent = "block not found"; - } - }); return; } if (operation.action === "move") { @@ -375,12 +369,6 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, focus: b blockRender(protyle, item); } }); - // 更新 ws 引用块 - protyle.wysiwyg.element.querySelectorAll(`[data-type~="block-ref"][data-id="${operation.id}"]`).forEach(item => { - if (item.getAttribute("data-subtype") === "d") { - item.textContent = "block not found"; - } - }); return; } if (operation.action === "update") {