@addsign/moje-agenda-shared-lib 1.0.25 → 1.0.27

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.
@@ -21914,7 +21914,7 @@ function DataTableServer({
21914
21914
  setFulltextSearch((_a2 = e.target) == null ? void 0 : _a2.value);
21915
21915
  setCurrentPage(0);
21916
21916
  };
21917
- const paginationDisplay = `Strana ${(currentPage || 0) + 1} z ${data == null ? void 0 : data.totalPages}`;
21917
+ const paginationDisplay = `Strana ${(currentPage || 0) + 1} z ${(data == null ? void 0 : data.totalPages) || 1}`;
21918
21918
  const filterHandler = (filterParam, value) => {
21919
21919
  setColumnFilters((prev) => ({ ...prev, [filterParam]: value }));
21920
21920
  setCurrentPage(0);
@@ -21927,10 +21927,8 @@ function DataTableServer({
21927
21927
  };
21928
21928
  useEffect(() => {
21929
21929
  if (!hasMounted) {
21930
- console.log("useEffect ran on mount");
21931
21930
  setHasMounted(true);
21932
21931
  } else {
21933
- console.log("useEffect ran due to prop change");
21934
21932
  setCurrentPage(0);
21935
21933
  }
21936
21934
  }, [filters]);