Skip to content

Commit 9be46e7

Browse files
LeoYuanJackLian
authored andcommitted
fix: error thrown when triggering undo after save schema on SchemaPane
1 parent b4b30a3 commit 9be46e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/designer/src/document/node/modal-nodes-manager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Node } from './node';
33
import { DocumentModel } from '../document-model';
44

55
function getModalNodes(node: Node) {
6+
if (!node) return [];
67
let nodes: any = [];
78
if (node.componentMeta.isModal) {
89
nodes.push(node);

0 commit comments

Comments
 (0)