Update layout-nav.component.ts

This commit is contained in:
MaxKey
2022-12-13 18:00:53 +08:00
parent a756c20030
commit b5e4858608

View File

@@ -110,9 +110,9 @@ export class LayoutDefaultNavComponent implements OnInit, OnDestroy {
if (linkNode == null) {
return false;
}
const id = +(linkNode.dataset !== undefined) ? linkNode.dataset?.['id'] : '';
const id = +linkNode.dataset!['id']!;
// Should be ingore children title trigger event
if (id == '') {
if (isNaN(id)) {
return false;
}