Prechádzať zdrojové kódy

Update layout-nav.component.ts

MaxKey 2 rokov pred
rodič
commit
b5e4858608

+ 2 - 2
maxkey-web-frontend/maxkey-web-mgt-app/src/app/theme/layout-default/layout-nav.component.ts

@@ -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;
     }