Skip to content

Commit 33764f4

Browse files
committed
Minor fixes to avoid lint errors
1 parent 961e15f commit 33764f4

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/app/shared/comcol/comcol-page-browse-by/comcol-page-browse-by.component.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ import {
3434
take,
3535
} from 'rxjs/operators';
3636

37-
import { APP_CONFIG, AppConfig } from '../../../../config/app-config.interface';
37+
import {
38+
APP_CONFIG,
39+
AppConfig
40+
} from '../../../../config/app-config.interface';
3841
import { getCollectionPageRoute } from '../../../collection-page/collection-page-routing-paths';
3942
import { getCommunityPageRoute } from '../../../community-page/community-page-routing-paths';
4043
import { BrowseService } from '../../../core/browse/browse.service';
@@ -125,7 +128,7 @@ export class ComcolPageBrowseByComponent implements OnDestroy, OnInit {
125128
})));
126129

127130
if (this.appConfig[this.contentType].defaultBrowseTab !== 'search') {
128-
allOptions.push(allOptions.shift())
131+
allOptions.push(allOptions.shift());
129132
}
130133
}
131134
return allOptions;
@@ -152,7 +155,7 @@ export class ComcolPageBrowseByComponent implements OnDestroy, OnInit {
152155
take(1),
153156
).subscribe((allOptions: ComColPageNavOption[]) => {
154157
if (!allOptions.find(o => o.routerLink === this.router.url?.split('?')[0])) {
155-
var option = allOptions.find(o => o.id === this.appConfig[this.contentType].defaultBrowseTab);
158+
const option = allOptions.find(o => o.id === this.appConfig[this.contentType].defaultBrowseTab);
156159
void this.router.navigate([option.routerLink], { queryParams: option.params });
157160
}
158161
});

0 commit comments

Comments
 (0)