@bluemarble/bm-components 0.0.72 → 0.0.73

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.
package/dist/esm/index.js CHANGED
@@ -15154,7 +15154,7 @@ function useGrid({ columns, filters = [], rowsPerPageOptions = [30, 60, 100] })
15154
15154
  const set = (data) => {
15155
15155
  setDefaultData(data);
15156
15156
  };
15157
- const sortData = (data) => {
15157
+ function sortData(data) {
15158
15158
  if (sortedBy) {
15159
15159
  return data.sort((a, b) => {
15160
15160
  const compare = b[sortedBy] > a[sortedBy];
@@ -15165,7 +15165,7 @@ function useGrid({ columns, filters = [], rowsPerPageOptions = [30, 60, 100] })
15165
15165
  }
15166
15166
  else
15167
15167
  return data;
15168
- };
15168
+ }
15169
15169
  const onPageChange = (pageNumber) => {
15170
15170
  if (pageNumber < 0)
15171
15171
  return;