Skip to content

Commit cf51b17

Browse files
committed
Filter count
1 parent f092bfe commit cf51b17

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/components/ProductTable/index.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,14 @@ const ProductTable = <T,>({
239239
if (Array.isArray(item.inputState) && item.inputState.length > 0) {
240240
return itemCount + 1
241241
}
242+
243+
if (
244+
typeof item.inputState === "string" &&
245+
item.filterKey !== "languages"
246+
) {
247+
return itemCount + 1
248+
}
249+
242250
return (
243251
itemCount +
244252
(typeof item.inputState === "boolean" && item.inputState ? 1 : 0)

0 commit comments

Comments
 (0)