@yeverlibs/ds 1.1.9 → 1.1.11
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/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6199,9 +6199,13 @@ var TableContent = ({
|
|
|
6199
6199
|
if (!pathname) return;
|
|
6200
6200
|
if (searchParams?.has("perPage")) {
|
|
6201
6201
|
setItemsPerPage(perPage);
|
|
6202
|
+
} else {
|
|
6203
|
+
setItemsPerPage(10);
|
|
6202
6204
|
}
|
|
6203
6205
|
if (searchParams?.has("search")) {
|
|
6204
6206
|
setSearchQuery(searchParam);
|
|
6207
|
+
} else {
|
|
6208
|
+
setSearchQuery("");
|
|
6205
6209
|
}
|
|
6206
6210
|
}, [perPage, searchParam, pathname, searchParams]);
|
|
6207
6211
|
const handlePagination = async () => {
|