vc-create-dashboard 2.6.1 → 2.6.2

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.
@@ -1909,11 +1909,13 @@ class UserListComponent {
1909
1909
  });
1910
1910
  this.footerDetails.displayElementKey = this.listDetails.displayElementKey;
1911
1911
  this.footerDetails.elementId = this.listDetails.elementIdKey;
1912
- this.dashboardService.getAllGroups().subscribe((res) => {
1913
- this.groupdata = res.data;
1914
- this.totalgroups = this.groupdata.length;
1915
- this.total_group_pages = res.total_pages;
1916
- });
1912
+ if (this.groupsEnabled) {
1913
+ this.dashboardService.getAllGroups().subscribe((res) => {
1914
+ this.groupdata = res.data;
1915
+ this.totalgroups = this.groupdata.length;
1916
+ this.total_group_pages = res.total_pages;
1917
+ });
1918
+ }
1917
1919
  if (this.listDetails.selectedGroupList.length > 0) {
1918
1920
  this.selectedgroupList = [...new Set(this.listDetails.selectedGroupList)];
1919
1921
  const selectedData = [...new Set(this.listDetails.selectedGroupList)];