Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
OButlerOcc committed Aug 1, 2022
1 parent ddb51eb commit f919cff
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
10 changes: 4 additions & 6 deletions src/app/bulk-edit/bulk-edit-editor/bulk-edit-editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -41,17 +41,15 @@ export class PathCellRendererComponent implements ICellRendererAngularComp {
}

getProfile(params: ICellRendererParams) {
console.log(params.data.profile.breadcrumbs);

return params.data.profile;
}

getProfileBreadcrumbPath() {
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;
Expand Down
2 changes: 1 addition & 1 deletion src/app/shared/path-name/path-name.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f919cff

Please sign in to comment.