mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[AAE-7242] fix eslint warnings for content services project (#7505)
* fix eslint warnings for content services project * fix typing issues
This commit is contained in:
@@ -37,7 +37,7 @@ import { takeUntil } from 'rxjs/operators';
|
||||
templateUrl: './breadcrumb.component.html',
|
||||
styleUrls: ['./breadcrumb.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
host: { 'class': 'adf-breadcrumb' }
|
||||
host: { class: 'adf-breadcrumb' }
|
||||
})
|
||||
export class BreadcrumbComponent implements OnInit, OnChanges, OnDestroy {
|
||||
|
||||
@@ -143,13 +143,13 @@ export class BreadcrumbComponent implements OnInit, OnChanges, OnDestroy {
|
||||
|
||||
parseRoute(node: Node): PathElementEntity[] {
|
||||
if (node && node.path) {
|
||||
const route = <PathElementEntity[]> (node.path.elements || []).slice();
|
||||
const route = (node.path.elements || []).slice();
|
||||
|
||||
route.push(<PathElementEntity> {
|
||||
route.push({
|
||||
id: node.id,
|
||||
name: node.name,
|
||||
node: node
|
||||
});
|
||||
node
|
||||
} as PathElementEntity);
|
||||
|
||||
const rootPos = this.getElementPosition(route, this.rootId);
|
||||
if (rootPos > 0) {
|
||||
|
Reference in New Issue
Block a user