@posiwise/admin-module 0.0.208 → 0.0.209
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5438,21 +5438,12 @@ class ProductDetailsComponent extends AppBaseComponent {
|
|
|
5438
5438
|
}
|
|
5439
5439
|
getCategories() {
|
|
5440
5440
|
this.productService.getProductCategories().subscribe(response => {
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
value: element
|
|
5446
|
-
};
|
|
5447
|
-
this.categories.push(item);
|
|
5448
|
-
});
|
|
5449
|
-
}
|
|
5441
|
+
this.categories = [
|
|
5442
|
+
{ label: 'Select', value: null },
|
|
5443
|
+
...(response?.categories ?? []).map(element => ({ label: element ?? '', value: element }))
|
|
5444
|
+
];
|
|
5450
5445
|
this.cdr.markForCheck();
|
|
5451
5446
|
});
|
|
5452
|
-
this.categories.unshift({
|
|
5453
|
-
label: 'Select',
|
|
5454
|
-
value: null
|
|
5455
|
-
});
|
|
5456
5447
|
}
|
|
5457
5448
|
/** Function to call all tos */
|
|
5458
5449
|
getAllTos(page, page_size) {
|