Skip to content

Commit 0cd0913

Browse files
committed
🎨 #14496
1 parent 2213d26 commit 0cd0913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/protyle/wysiwyg/remove.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export const removeBlock = async (protyle: IProtyle, blockElement: Element, rang
196196
if (!sideElement) {
197197
const backlinkElement = hasClosestByClassName(protyle.element, "sy__backlink", true)
198198
if (backlinkElement) {
199-
const backLinkTab = getInstanceById(backlinkElement.getAttribute("data-id"));
199+
const backLinkTab = getInstanceById(backlinkElement.getAttribute("data-id"), window.siyuan.layout.layout);
200200
if (backLinkTab instanceof Tab && backLinkTab.model instanceof Backlink) {
201201
const editors = backLinkTab.model.editors
202202
editors.find((item, index) => {

0 commit comments

Comments
 (0)