ngx-render-material-forms 1.9.7 → 1.9.8

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.
@@ -3792,7 +3792,11 @@ class AddOnProductsComponent {
3792
3792
  getProducts(flag) {
3793
3793
  this.spinnerFlag = true;
3794
3794
  const search = this.searchQuery;
3795
- this.commonSevice.loadProducts(this.pageNumber, this.pageSize, search, true, false, this.levelOneId, this.levelTwoId, this.levelThreeId, this.levelFourId).subscribe(response => {
3795
+ const levelOneId = this.levelOneId ? this.levelOneId : 0;
3796
+ const levelTwoId = this.levelTwoId ? this.levelTwoId : 0;
3797
+ const levelThreeId = this.levelThreeId ? this.levelThreeId : 0;
3798
+ const levelFourId = this.levelFourId ? this.levelFourId : 0;
3799
+ this.commonSevice.loadProducts(this.pageNumber, this.pageSize, search, true, false, levelOneId, levelTwoId, levelThreeId, levelFourId).subscribe(response => {
3796
3800
  this.spinnerFlag = false;
3797
3801
  if (response && response.code === 200) {
3798
3802
  this.totalPages = response?.data?.totalPages;