@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 CHANGED
@@ -6229,9 +6229,13 @@ var TableContent = ({
6229
6229
  if (!pathname) return;
6230
6230
  if (searchParams?.has("perPage")) {
6231
6231
  setItemsPerPage(perPage);
6232
+ } else {
6233
+ setItemsPerPage(10);
6232
6234
  }
6233
6235
  if (searchParams?.has("search")) {
6234
6236
  setSearchQuery(searchParam);
6237
+ } else {
6238
+ setSearchQuery("");
6235
6239
  }
6236
6240
  }, [perPage, searchParam, pathname, searchParams]);
6237
6241
  const handlePagination = async () => {