diff --git a/app/components/Sidebar/App.tsx b/app/components/Sidebar/App.tsx index 1b5f1513bc..8ea1561338 100644 --- a/app/components/Sidebar/App.tsx +++ b/app/components/Sidebar/App.tsx @@ -5,7 +5,6 @@ import { DndProvider } from "react-dnd"; import { HTML5Backend } from "react-dnd-html5-backend"; import { useTranslation } from "react-i18next"; import styled from "styled-components"; -import { Pagination } from "@shared/constants"; import Flex from "~/components/Flex"; import Scrollable from "~/components/Scrollable"; import Text from "~/components/Text"; @@ -43,7 +42,7 @@ function AppSidebar() { React.useEffect(() => { if (!user.isViewer) { void documents.fetchDrafts(); - void collections.fetchPage({ limit: Pagination.maxLimit }); + void collections.fetchAll(); } }, [documents, collections, user.isViewer]); diff --git a/app/components/Sidebar/components/Collections.tsx b/app/components/Sidebar/components/Collections.tsx index 0c3d3b77e4..1b5419b31d 100644 --- a/app/components/Sidebar/components/Collections.tsx +++ b/app/components/Sidebar/components/Collections.tsx @@ -53,7 +53,6 @@ function Collections() {