neogestify-ui-components 2.3.0 → 2.3.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neogestify-ui-components",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Biblioteca de componentes UI reutilizables con React, Tailwind y SweetAlert, con VenueMapEditor o editor de mapas basico",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -346,7 +346,7 @@ export function Table({
346
346
  <tr>
347
347
  {cols.map((col, i) => {
348
348
  const isSortable = col.sortable && col.key;
349
- const activeSort = sortState?.key === col.key ? sortState!.direction : null;
349
+ const activeSort = (sortState && col.key && sortState.key === col.key) ? sortState.direction : null;
350
350
  return (
351
351
  <th
352
352
  key={i}