From 27260faea8fadadaf4c9e03259ff738b6b97ac16 Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Mon, 19 Aug 2024 21:55:32 +0200 Subject: [PATCH] fix: #75 --- app/(auth)/collections/[collectionId].tsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/(auth)/collections/[collectionId].tsx b/app/(auth)/collections/[collectionId].tsx index d610c77a..0cc70866 100644 --- a/app/(auth)/collections/[collectionId].tsx +++ b/app/(auth)/collections/[collectionId].tsx @@ -56,6 +56,21 @@ const page: React.FC = () => { const [sortBy, setSortBy] = useAtom(sortByAtom); const [sortOrder, setSortOrder] = useAtom(sortOrderAtom); + useEffect(() => { + setSortBy([ + { + key: "ProductionYear", + value: "Production Year", + }, + ]); + setSortOrder([ + { + key: "Descending", + value: "Descending", + }, + ]); + }, []); + const { data: collection } = useQuery({ queryKey: ["collection", collectionId], queryFn: async () => {