Skip to content

Commit 0123d81

Browse files
committed
new
1 parent 252781a commit 0123d81

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/app/pages/product-details/product-details.component.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@ export class ProductDetailsComponent implements OnInit {
4141
categoriesMore: any[] | undefined = [];
4242
category: string = 'none';
4343

44-
async ngOnInit(): Promise<void> {
44+
ngOnInit(): void {
4545
this.initCategories();
4646
this.initImages();
47+
void this.initAsync();
48+
}
49+
50+
private async initAsync(): Promise<void> {
4751
await this.loadProductSpecificationAndPrices();
4852
this.filterCharacteristics();
4953
}
@@ -115,6 +119,7 @@ export class ProductDetailsComponent implements OnInit {
115119
}
116120

117121

122+
118123
closeCategories(){
119124
this.closeCats=false;
120125
this.checkMoreCats=true;

0 commit comments

Comments
 (0)