Vanessa 2025-12-20 11:23:26 +08:00
parent 02bbd6bffd
commit 319db401c2

View file

@ -319,7 +319,7 @@ const updateEmbed = (protyle: IProtyle, operation: IOperation) => {
};
const deleteBlock = (updateElements: Element[], id: string, protyle: IProtyle, isUndo: boolean) => {
if (isUndo) {
if (isUndo && updateElements[0]) {
focusSideBlock(updateElements[0]);
}
updateElements.forEach(item => {