neogestify-ui-components 2.3.0 → 2.3.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.
@@ -609,7 +609,7 @@ function Table({
609
609
  caption && /* @__PURE__ */ jsx("caption", { className: "mb-2 text-left text-sm text-gray-500 dark:text-gray-400", children: caption }),
610
610
  !hideHeader && /* @__PURE__ */ jsx("thead", { className: theadCls, children: /* @__PURE__ */ jsx("tr", { children: cols.map((col, i) => {
611
611
  const isSortable = col.sortable && col.key;
612
- const activeSort = sortState?.key === col.key ? sortState.direction : null;
612
+ const activeSort = sortState && col.key && sortState.key === col.key ? sortState.direction : null;
613
613
  return /* @__PURE__ */ jsxs(
614
614
  "th",
615
615
  {