mirror of
https://github.com/Raghu-Ch/InventoryApp.git
synced 2026-02-10 12:53:03 -05:00
add safe check for product details
This commit is contained in:
@@ -25,7 +25,7 @@ export class ProductDetailComponent implements OnInit {
|
||||
// console.log(id$);
|
||||
this.productService.getProduct(id).subscribe((res) => {
|
||||
this.product = res;
|
||||
console.log(this.product);
|
||||
// console.log(this.product);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user