mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -38,7 +38,7 @@ openWindow = (options: {
|
||||
id: string, // 块 id
|
||||
},
|
||||
}) => {
|
||||
if (options.doc.id) {
|
||||
if (options.doc && options.doc.id) {
|
||||
openNewWindowById(options.doc.id, {position: options.position, width: options.width, height: options.height});
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user