mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
fix: 未打开文档时点击大纲会弹出 未找到 ID 为 [] 的内容块 (#14026)
fix https://ld246.com/article/1738820297928
This commit is contained in:
parent
56cbedcbaf
commit
2088200677
1 changed files with 1 additions and 1 deletions
|
|
@ -178,7 +178,7 @@ export class Outline extends Model {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
} else if (target.isSameNode(this.headerElement.nextElementSibling) || target.classList.contains("block__icons")) {
|
} else if (this.blockId && (target.isSameNode(this.headerElement.nextElementSibling) || target.classList.contains("block__icons"))) {
|
||||||
openFileById({
|
openFileById({
|
||||||
app: options.app,
|
app: options.app,
|
||||||
id: this.blockId,
|
id: this.blockId,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue