diff --git a/src/app/bulk-edit/bulk-edit-editor/bulk-edit-editor.component.ts b/src/app/bulk-edit/bulk-edit-editor/bulk-edit-editor.component.ts index f9e27c755..4c58a7544 100644 --- a/src/app/bulk-edit/bulk-edit-editor/bulk-edit-editor.component.ts +++ b/src/app/bulk-edit/bulk-edit-editor/bulk-edit-editor.component.ts @@ -17,11 +17,7 @@ limitations under the License. SPDX-License-Identifier: Apache-2.0 */ import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; -import { - MultiFacetAwareItem, - Profile, - ProfileField -} from '@maurodatamapper/mdm-resources'; +import { ProfileField } from '@maurodatamapper/mdm-resources'; import { MessageHandlerService } from '@mdm/services'; import { CellClassParams, @@ -224,7 +220,9 @@ export class BulkEditEditorComponent implements OnInit { } private excludeAutoResizeColumns(columnIds) { - const pathId = this.gridColumnApi.getColumn('Path').getColId; + const pathColKey = 'Path'; + // eslint-disable-next-line @typescript-eslint/unbound-method + const pathId = this.gridColumnApi.getColumn(pathColKey).getColId; const pathIndex = columnIds.indexOf(pathId); if (pathIndex > -1) { columnIds.splice(pathIndex, 1); diff --git a/src/app/bulk-edit/bulk-edit-editor/cell-renderers/path-cell-renderer/path-cell-renderer.component.spec.ts b/src/app/bulk-edit/bulk-edit-editor/cell-renderers/path-cell-renderer/path-cell-renderer.component.spec.ts index 6082f8998..177f3de9f 100644 --- a/src/app/bulk-edit/bulk-edit-editor/cell-renderers/path-cell-renderer/path-cell-renderer.component.spec.ts +++ b/src/app/bulk-edit/bulk-edit-editor/cell-renderers/path-cell-renderer/path-cell-renderer.component.spec.ts @@ -22,10 +22,6 @@ import { ComponentHarness, setupTestModuleForComponent } from '@mdm/testing/testing.helpers'; -import { ICellRendererParams } from 'ag-grid-community'; -import { profile } from 'console'; -import { data } from 'jquery'; -import { uniqueId } from 'lodash'; import { PathCellRendererComponent } from './path-cell-renderer.component'; describe('PathCellRendererComponent', () => { diff --git a/src/app/bulk-edit/bulk-edit-editor/cell-renderers/path-cell-renderer/path-cell-renderer.component.ts b/src/app/bulk-edit/bulk-edit-editor/cell-renderers/path-cell-renderer/path-cell-renderer.component.ts index f58bfb630..ad0436faf 100644 --- a/src/app/bulk-edit/bulk-edit-editor/cell-renderers/path-cell-renderer/path-cell-renderer.component.ts +++ b/src/app/bulk-edit/bulk-edit-editor/cell-renderers/path-cell-renderer/path-cell-renderer.component.ts @@ -16,7 +16,7 @@ limitations under the License. SPDX-License-Identifier: Apache-2.0 */ -import { Component, Input } from '@angular/core'; +import { Component } from '@angular/core'; import { NavigatableProfile } from '@mdm/mauro/mauro-item.types'; import { ICellRendererAngularComp } from 'ag-grid-angular'; import { ICellRendererParams } from 'ag-grid-community'; @@ -41,8 +41,6 @@ export class PathCellRendererComponent implements ICellRendererAngularComp { } getProfile(params: ICellRendererParams) { - console.log(params.data.profile.breadcrumbs); - return params.data.profile; } @@ -50,8 +48,8 @@ export class PathCellRendererComponent implements ICellRendererAngularComp { let builtPath = ''; const numberOfBreadcrumbs = this.profile.breadcrumbs.length; - this.profile.breadcrumbs.map(function (breadcrumb, i) { - if (i < numberOfBreadcrumbs && i != 0) { + this.profile.breadcrumbs.map((breadcrumb, i) => { + if (i < numberOfBreadcrumbs && i !== 0) { builtPath = builtPath + ' > '; } builtPath = builtPath + breadcrumb.label; diff --git a/src/app/shared/path-name/path-name.service.ts b/src/app/shared/path-name/path-name.service.ts index 28a684cb4..dcf6cf9dd 100644 --- a/src/app/shared/path-name/path-name.service.ts +++ b/src/app/shared/path-name/path-name.service.ts @@ -17,7 +17,7 @@ limitations under the License. SPDX-License-Identifier: Apache-2.0 */ import { Injectable } from '@angular/core'; -import { Breadcrumb, Modelable, Navigatable } from '@maurodatamapper/mdm-resources'; +import { Modelable, Navigatable } from '@maurodatamapper/mdm-resources'; import { PathElement, pathElementDomainTypes,