mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
892d166acf
commit
66931a7cda
7 changed files with 57 additions and 20 deletions
|
|
@ -650,7 +650,7 @@ export const openMenuPanel = (options: {
|
|||
break;
|
||||
} else if (type === "delete-view") {
|
||||
if (data.views.length === 1) {
|
||||
removeBlock(options.protyle, options.blockElement, getEditorRange(options.blockElement));
|
||||
removeBlock(options.protyle, options.blockElement, getEditorRange(options.blockElement), "remove");
|
||||
} else {
|
||||
transaction(options.protyle, [{
|
||||
action: "removeAttrViewView",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue