@indigina/ui-kit 1.1.135 → 1.1.136

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.
@@ -6552,11 +6552,11 @@ const kitBuildGridDataResults = (data, loading, total) => ({
6552
6552
  },
6553
6553
  loading,
6554
6554
  });
6555
- const kitBuildSortString = (sort) => sort?.filter(item => item.dir)
6556
- .map(item => {
6557
- const field = item.field.split('.').join('/');
6558
- return `${field} ${item.dir}`;
6559
- }).join(',') ?? undefined;
6555
+ const kitBuildSortString = (sort) => {
6556
+ const sortString = sort?.filter(({ dir }) => dir)
6557
+ .map(({ field, dir }) => `${field.split('.').join('/')} ${dir}`).join(', ');
6558
+ return sortString !== '' && sortString || undefined;
6559
+ };
6560
6560
 
6561
6561
  var KitGridViewType;
6562
6562
  (function (KitGridViewType) {