mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 09:18:49 +01:00
This commit is contained in:
parent
a9132e9af4
commit
51725d71cb
1 changed files with 1 additions and 1 deletions
|
|
@ -437,7 +437,7 @@ export const removeBlock = async (protyle: IProtyle, blockElement: Element, rang
|
|||
// https://github.com/siyuan-note/siyuan/issues/14807
|
||||
if (previousLastEditElement) {
|
||||
let previousLastChild = previousLastEditElement.lastChild;
|
||||
if (previousLastChild.nodeType === 3) {
|
||||
if (previousLastChild && previousLastChild.nodeType === 3) {
|
||||
if (!previousLastChild.textContent) {
|
||||
previousLastChild = hasPreviousSibling(previousLastChild) as ChildNode;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue