|
@@ -319,7 +319,7 @@ INTERFACE_EXPORT = (() => {
|
|
|
}
|
|
}
|
|
|
cur = cur.parent;
|
|
cur = cur.parent;
|
|
|
}
|
|
}
|
|
|
- return (cur.data.name || '').replace(/[^0-9]/g, '');
|
|
|
|
|
|
|
+ return (cur?.data?.name || '').replace(/[^0-9]/g, '');
|
|
|
} else {
|
|
} else {
|
|
|
const sectionCode = (node.data.name || '').replace(/[^0-9]/g, '');
|
|
const sectionCode = (node.data.name || '').replace(/[^0-9]/g, '');
|
|
|
node.data.sectionCode = sectionCode;
|
|
node.data.sectionCode = sectionCode;
|