We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 252781a commit 0123d81Copy full SHA for 0123d81
src/app/pages/product-details/product-details.component.ts
@@ -41,9 +41,13 @@ export class ProductDetailsComponent implements OnInit {
41
categoriesMore: any[] | undefined = [];
42
category: string = 'none';
43
44
- async ngOnInit(): Promise<void> {
+ ngOnInit(): void {
45
this.initCategories();
46
this.initImages();
47
+ void this.initAsync();
48
+ }
49
+
50
+ private async initAsync(): Promise<void> {
51
await this.loadProductSpecificationAndPrices();
52
this.filterCharacteristics();
53
}
@@ -115,6 +119,7 @@ export class ProductDetailsComponent implements OnInit {
115
119
116
120
117
121
122
118
123
closeCategories(){
124
this.closeCats=false;
125
this.checkMoreCats=true;
0 commit comments