fix: error thrown when triggering undo after save schema on SchemaPane

This commit is contained in:
LeoYuan 袁力皓 2022-07-07 20:22:28 +08:00 committed by 林熠
parent b4b30a3599
commit 9be46e7b34

View File

@ -3,6 +3,7 @@ import { Node } from './node';
import { DocumentModel } from '../document-model';
function getModalNodes(node: Node) {
if (!node) return [];
let nodes: any = [];
if (node.componentMeta.isModal) {
nodes.push(node);