@appcorp/shadcn 1.0.20 → 1.0.21

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.
@@ -17,7 +17,9 @@ var EnhancedTableHeaderAction = function (_a) {
17
17
  var isFilterButton = action.label
18
18
  .toLowerCase()
19
19
  .includes("filter");
20
- var showFilterIndicators = isFilterButton && numberOfFilters && numberOfFilters > 0;
20
+ var showFilterIndicators = isFilterButton &&
21
+ typeof numberOfFilters === "number" &&
22
+ numberOfFilters > 0;
21
23
  return (react_1.default.createElement("div", { key: action.id || action.key || index, className: "relative" },
22
24
  react_1.default.createElement(button_1.Button, { variant: action.variant || "default", onClick: function () {
23
25
  if (action.onClick)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/shadcn",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "scripts": {
5
5
  "build:next": "next build",
6
6
  "build:storybook": "storybook build -c .storybook -o .out",