Change initial load limit to DEFAULT_PAGINATION_LIMIT

This commit is contained in:
CuriousCorrelation authored and Tom Moor committed 2022-07-17 12:22:25 +01:00
1 parent ddab370640
commit 2f4a9378ce
1 file changed
+2 -1
+2 -1
View File
@@ -1,6 +1,7 @@
import { observer } from "mobx-react";
import * as React from "react";
import { useTranslation } from "react-i18next";
import { DEFAULT_PAGINATION_LIMIT } from "~/stores/BaseStore";
import FilterOptions from "~/components/FilterOptions";
import useStores from "~/hooks/useStores";
@@ -16,7 +17,7 @@ function UserFilter(props: Props) {
React.useEffect(() => {
users.fetchPage({
limit: 20,
limit: DEFAULT_PAGINATION_LIMIT,
});
}, [users]);