Skip to content

Commit

Permalink
Minor fixes to avoid lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
abelgomez committed Jul 3, 2024
1 parent 94fd031 commit 83fca9d
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ import {
take,
} from 'rxjs/operators';

import { APP_CONFIG, AppConfig } from '../../../../config/app-config.interface';
import {

Check failure on line 37 in src/app/shared/comcol/comcol-page-browse-by/comcol-page-browse-by.component.ts

View workflow job for this annotation

GitHub Actions / tests (18.x)

Trailing spaces not allowed

Check failure on line 37 in src/app/shared/comcol/comcol-page-browse-by/comcol-page-browse-by.component.ts

View workflow job for this annotation

GitHub Actions / tests (20.x)

Trailing spaces not allowed
APP_CONFIG,
AppConfig

Check failure on line 39 in src/app/shared/comcol/comcol-page-browse-by/comcol-page-browse-by.component.ts

View workflow job for this annotation

GitHub Actions / tests (18.x)

Missing trailing comma

Check failure on line 39 in src/app/shared/comcol/comcol-page-browse-by/comcol-page-browse-by.component.ts

View workflow job for this annotation

GitHub Actions / tests (20.x)

Missing trailing comma
} from '../../../../config/app-config.interface';
import { getCollectionPageRoute } from '../../../collection-page/collection-page-routing-paths';
import { getCommunityPageRoute } from '../../../community-page/community-page-routing-paths';
import { BrowseService } from '../../../core/browse/browse.service';
Expand Down Expand Up @@ -125,7 +128,7 @@ export class ComcolPageBrowseByComponent implements OnDestroy, OnInit {
})));

if (this.appConfig[this.contentType].defaultBrowseTab !== 'search') {
allOptions.push(allOptions.shift())
allOptions.push(allOptions.shift());
}
}
return allOptions;
Expand All @@ -152,7 +155,7 @@ export class ComcolPageBrowseByComponent implements OnDestroy, OnInit {
take(1),
).subscribe((allOptions: ComColPageNavOption[]) => {
if (!allOptions.find(o => o.routerLink === this.router.url?.split('?')[0])) {
var option = allOptions.find(o => o.id === this.appConfig[this.contentType].defaultBrowseTab);
const option = allOptions.find(o => o.id === this.appConfig[this.contentType].defaultBrowseTab);
void this.router.navigate([option.routerLink], { queryParams: option.params });
}
});
Expand Down

0 comments on commit 83fca9d

Please sign in to comment.