fix null value error
This commit is contained in:
1 parent
54c0ff7356
commit
d32c0a54b0
6 files changed
+40
-35
No files matched your search
@@ -65,7 +65,7 @@ G6.registerNode(
|
||||
let color = nodeDef.color || NODE_COLORS[classify] || NODE_COLORS["Other"];
|
||||
if (
|
||||
!workspace.hasNodeDef(cfg.name as string) ||
|
||||
(cfg.path && (!cfg.children || (cfg.children as []).length == 0)) ||
|
||||
(cfg.path && (!cfg.children || (cfg.children as []).length === 0)) ||
|
||||
!checkTreeData(cfg as TreeGraphData)
|
||||
) {
|
||||
classify = "Error";
|
||||
|
||||
Reference in new issue
Block a user